Update create_logger.py
This commit is contained in:
parent
bf04116242
commit
d973d48818
1 changed files with 1 additions and 1 deletions
|
@ -13,7 +13,7 @@ def create_logger(
|
|||
logger.setLevel(logging.DEBUG)
|
||||
|
||||
if save_logging_messages:
|
||||
time_format = "%b %-d %Y %H:%M:%S"
|
||||
time_format = "%b %d %Y %H:%M:%S"
|
||||
logformat = "%(asctime)s %(message)s"
|
||||
file_formatter = logging.Formatter(fmt=logformat, datefmt=time_format)
|
||||
os.makedirs("logs_" + log_stage_name, exist_ok=True)
|
||||
|
|
Loading…
Reference in a new issue