diff --git a/neutron/openstack/common/log_handler.py b/neutron/openstack/common/log_handler.py index 8156f37e19..4da3ad3689 100644 --- a/neutron/openstack/common/log_handler.py +++ b/neutron/openstack/common/log_handler.py @@ -11,6 +11,7 @@ # WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the # License for the specific language governing permissions and limitations # under the License. + import logging from oslo.config import cfg @@ -26,4 +27,4 @@ class PublishErrorsHandler(logging.Handler): notifier.api.notify(None, 'error.publisher', 'error_notification', notifier.api.ERROR, - dict(error=record.msg)) + dict(error=record.getMessage()))