Timestamp logs.
authorCMDR furrycat <elite@furrycat.net>
Thu, 6 Oct 2016 10:56:07 +0000 (11:56 +0100)
committerCMDR furrycat <elite@furrycat.net>
Thu, 6 Oct 2016 11:00:54 +0000 (12:00 +0100)
bot.py

diff --git a/bot.py b/bot.py
index 8260516..232a03a 100755 (executable)
--- a/bot.py
+++ b/bot.py
@@ -61,7 +61,7 @@ fd.close()
 fd = open(token_file, 'r')
 token = fd.readline().strip()
 fd.close()
-logging.basicConfig(level = logging.DEBUG if debug else logging.WARN)
+logging.basicConfig(level = logging.DEBUG if debug else logging.WARN, format = '%(asctime)s %(name)s: %(levelname)s: %(funcName)s@%(module)s:%(lineno)d: %(message)s')
 discordlog = logging.getLogger('discord')
 log = logging.getLogger('catbot')
 log.setLevel(logging.DEBUG if debug else logging.INFO)