From 3b8b154a6649d46332dc3e2f2c0d99da1a8a0d4e Mon Sep 17 00:00:00 2001 From: jcao219 Date: Tue, 26 Jun 2012 17:02:10 -0500 Subject: [PATCH] make debug output more readable --- wolfbot.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/wolfbot.py b/wolfbot.py index b9d6c39..4e3d4a6 100755 --- a/wolfbot.py +++ b/wolfbot.py @@ -38,6 +38,9 @@ def main(): handler.setFormatter(formatter) else: logging.basicConfig(level=logging.DEBUG) + formatter = UTCFormatter('[%(asctime)s] %(message)s', '%H:%M:%S') + for handler in logging.getLogger().handlers: + handler.setFormatter(formatter) cli = IRCClient( {"privmsg":modules.common.on_privmsg,