log.DialogHandler: print formatted record, not just message.

Fixes bug, where DialogHandler would display only %(message) part of
the record, instead of the entire formatted record string.
This commit is contained in:
Jakub Warmuz 2015-06-22 12:44:55 +00:00
parent eb149b9129
commit 865d9074e4
No known key found for this signature in database
GPG key ID: 2A7BAD3A489B52EA

View file

@ -37,7 +37,7 @@ class DialogHandler(logging.Handler): # pylint: disable=too-few-public-methods
lines.
"""
for line in record.getMessage().splitlines():
for line in self.format(record).splitlines():
# check for lines that would wrap
cur_out = line
while len(cur_out) > self.width: