From fd98b9082f52f200f7b1568fc28a70d4cb56b285 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alin=20Tr=C4=83istaru?= Date: Fri, 28 Apr 2017 22:15:35 +0300 Subject: [PATCH] clean up logging timeformat --- scripts/gen.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/gen.py b/scripts/gen.py index dc21d80..adba561 100644 --- a/scripts/gen.py +++ b/scripts/gen.py @@ -39,7 +39,7 @@ def log(message, info=True, error=False, debug=False): os.remove(LOG_FILE_PATH) logging.basicConfig(filename=LOG_FILE_PATH, filemode='a', - format='%(asctime)s,%(msecs)d %(name)s %(levelname)s %(message)s', + format='%(asctime)s.%(msecs)03d %(name)s %(levelname)s %(message)s', datefmt='%H:%M:%S', level=logging.DEBUG) print(message)