Skip to content
Snippets Groups Projects
Commit c35f9e5d authored by Antoine Berchet's avatar Antoine Berchet
Browse files

fixing color issue for logging

parent 1188154d
No related branches found
No related tags found
1 merge request!14Lsce
......@@ -53,7 +53,7 @@ def init_log(logfile, workdir, loglevel):
file_handler = logging.FileHandler(logfile)
formatter = ColorFormatter(
fmt="#(level)%(asctime)s: %(message)s", datefmt="%Y-%m-%d %H:%m:%S"
fmt="%(asctime)s: %(message)s", datefmt="%Y-%m-%d %H:%m:%S"
)
file_handler.setFormatter(formatter)
......
......@@ -82,7 +82,7 @@ class ColorFormatter(logging.Formatter):
logging.CRITICAL: "bold inverted red",
logging.ERROR: "bold red",
logging.WARNING: "bold yellow",
logging.INFO: "white",
logging.INFO: "green",
logging.DEBUG: "bold blue",
},
)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment