Merge "Add user-supplied arguments in log_handler"

This commit is contained in:
Jenkins 2014-03-01 12:35:31 +00:00 committed by Gerrit Code Review
commit 3e60d1ba6a
1 changed files with 2 additions and 1 deletions

View File

@ -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()))