2
0
mirror of https://github.com/mbusb/multibootusb synced 2024-11-01 15:40:16 +00:00

clean up logging timeformat

This commit is contained in:
Alin Trăistaru 2017-04-28 22:15:35 +03:00
parent 580cb84d3b
commit fd98b9082f

View File

@ -39,7 +39,7 @@ def log(message, info=True, error=False, debug=False):
os.remove(LOG_FILE_PATH) os.remove(LOG_FILE_PATH)
logging.basicConfig(filename=LOG_FILE_PATH, logging.basicConfig(filename=LOG_FILE_PATH,
filemode='a', 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', datefmt='%H:%M:%S',
level=logging.DEBUG) level=logging.DEBUG)
print(message) print(message)