Skip to content
Snippets Groups Projects
Commit 016ab612 authored by Manuela Kuhn's avatar Manuela Kuhn
Browse files

Adjust screen logging level to option verbose

parent 50152175
No related branches found
No related tags found
No related merge requests found
......@@ -207,8 +207,10 @@ def initLogging(filenameFullPath, verbose):
#more detailed logging if verbose-option has been set
loggingLevel = logging.INFO
screenLoggingLevel = logging.ERROR
if verbose:
loggingLevel = logging.DEBUG
screenLoggingLevel = logging.INFO
#log everything to file
logging.basicConfig(level=loggingLevel,
......@@ -227,8 +229,7 @@ def initLogging(filenameFullPath, verbose):
#log info to stdout, display messages with different format than the file output
console = logging.StreamHandler()
# console.setLevel(logging.ERROR)
console.setLevel(logging.INFO)
console.setLevel(screenLoggingLevel)
formatter = logging.Formatter("%(asctime)s > %(message)s")
console.setFormatter(formatter)
......
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