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

Added line number to logs

parent d5612f25
No related branches found
No related tags found
No related merge requests found
...@@ -649,7 +649,7 @@ def initLogging(filenameFullPath, verbose): ...@@ -649,7 +649,7 @@ def initLogging(filenameFullPath, verbose):
#log everything to file #log everything to file
logging.basicConfig(level=loggingLevel, logging.basicConfig(level=loggingLevel,
format='[%(asctime)s] [PID %(process)d] [%(filename)s] [%(module)s:%(funcName)s] [%(name)s] [%(levelname)s] %(message)s', format='[%(asctime)s] [PID %(process)d] [%(filename)s] [%(module)s:%(funcName)s:%(lineno)d] [%(name)s] [%(levelname)s] %(message)s',
datefmt='%Y-%m-%d_%H:%M:%S', datefmt='%Y-%m-%d_%H:%M:%S',
filename=filenameFullPath, filename=filenameFullPath,
filemode="a") filemode="a")
......
...@@ -306,7 +306,7 @@ def initLogging(filenameFullPath, verbose): ...@@ -306,7 +306,7 @@ def initLogging(filenameFullPath, verbose):
#log everything to file #log everything to file
logging.basicConfig(level=loggingLevel, logging.basicConfig(level=loggingLevel,
format='[%(asctime)s] [PID %(process)d] [%(filename)s] [%(module)s:%(funcName)s] [%(name)s] [%(levelname)s] %(message)s', format='[%(asctime)s] [PID %(process)d] [%(filename)s] [%(module)s:%(funcName)s:%(lineno)d] [%(name)s] [%(levelname)s] %(message)s',
datefmt='%Y-%m-%d_%H:%M:%S', datefmt='%Y-%m-%d_%H:%M:%S',
filename=filenameFullPath, filename=filenameFullPath,
filemode="a") filemode="a")
......
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