X-Git-Url: https://svn.cri.ensmp.fr/git/minwii.git/blobdiff_plain/f930cbccef5ed34b7b17b9e738458b048d93d1da..dc8216d3cd94fe2a5d89c6e8a4fae5de2f25bc9b:/src/app/log.py?ds=inline diff --git a/src/app/log.py b/src/app/log.py index ca10200..f07e3d2 100755 --- a/src/app/log.py +++ b/src/app/log.py @@ -25,7 +25,7 @@ class EventLoggerAdapter(logging.LoggerAdapter) : FORMAT = "%(ticks)-10s %(eventName)-15s %(message)s" def process(self, msg, kwargs) : - pp = pprinters.get(msg.type, lambda e: '') + pp = pprinters.get(msg.type, lambda e: str(e)) extra = {} extra['eventType'] = msg.type extra['eventName'] = eventNames[msg.type] @@ -55,4 +55,4 @@ _eventLogger.addHandler(_eventHandler) _eventLogger.addFilter(EventFilter()) eventLogger = EventLoggerAdapter(_eventLogger, {}) - +#eventLogger = logging.getLogger('minwii.events')