make sure log messages are not zero-length when sent to portal

This commit is contained in:
Jude Nelson
2017-06-15 11:28:11 -04:00
parent 64562fe002
commit ab5aaac98e

View File

@@ -53,6 +53,10 @@ class NetworkLogFormatter( logging.Formatter ):
}
def format(self, record):
msg = record.msg
if msg is None:
msg = ' '
data = {
'time': int(time.time()),
'level': NetworkLogFormatter.level_names.get(record.levelno, 'TRACE'),