From: CMDR furrycat Date: Thu, 6 Oct 2016 10:56:07 +0000 (+0100) Subject: Timestamp logs. X-Git-Url: http://git.furryclan.net/?a=commitdiff_plain;h=3caeecb5d9681857dcaf0666f22f86da9431d3d6;p=furrycat%2Fcatbot.git Timestamp logs. --- diff --git a/bot.py b/bot.py index 8260516..232a03a 100755 --- 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)