Skip to content
Snippets Groups Projects
Commit d3ccc7e4 authored by Ashwin Kumar Karnad's avatar Ashwin Kumar Karnad
Browse files

Apply 1 suggestion(s) to 1 file(s)

parent f31ab700
Branches
Tags
1 merge request!22Introduce logging module
Pipeline #368825 passed
...@@ -57,10 +57,7 @@ def set_up_logging(loglevel="warning", filename="test.log"): ...@@ -57,10 +57,7 @@ def set_up_logging(loglevel="warning", filename="test.log"):
handlers.append(logging.FileHandler(filename)) handlers.append(logging.FileHandler(filename))
handlers.append(logging.StreamHandler()) handlers.append(logging.StreamHandler())
if log_level_numeric == logging.DEBUG: linenumbers = " %(lineno)4d" if log_level_numeric == logging.DEBUG else ""
linenumbers = " %(lineno)4d"
else:
linenumbers = ""
logging.basicConfig( logging.basicConfig(
format="%(asctime)s %(levelname)7s" + linenumbers + " | %(message)s", format="%(asctime)s %(levelname)7s" + linenumbers + " | %(message)s",
datefmt="[%X]", datefmt="[%X]",
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment