diff options
Diffstat (limited to 'service')
-rw-r--r-- | service/pixelated/config/logger.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/service/pixelated/config/logger.py b/service/pixelated/config/logger.py index a1e825a6..c4d2dc76 100644 --- a/service/pixelated/config/logger.py +++ b/service/pixelated/config/logger.py @@ -44,9 +44,9 @@ def init(debug=False): def formatter(event): event['log_time'] = time.strftime('%Y-%m-%d %H:%M:%S', time.localtime(event['log_time'])) event['log_level'] = event['log_level'].name.upper() + event['log_format'] = event.get('log_format') or '' logstring = u'{log_time} [{log_namespace}] {log_level} ' + event['log_format'] + '\n' return logstring.format(**event) observers = [FileLogObserver(sys.stdout, formatter)] - globalLogBeginner.beginLoggingTo(observers) |