Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
FS-SC
AsapoWorker
Commits
81e399ed
Commit
81e399ed
authored
Jan 13, 2020
by
Tim Schoof
Browse files
Include line number in log messages
parent
119d94ee
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/AsapoWorker/application.py
View file @
81e399ed
...
...
@@ -55,7 +55,9 @@ class Application:
options
=
parsed_args_to_dict
(
parsed_args
)
log_level
=
options
[
"log_level"
]
format
=
"%(asctime)s %(name)-12s %(levelname)-8s %(message)s"
format
=
(
"%(asctime)s AsapoWorker %(filename)s:%(lineno)d "
"%(levelname)-8s %(message)s"
)
logging
.
basicConfig
(
level
=
log_level
,
format
=
format
)
logging
.
info
(
"Log level set to %s"
,
log_level
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment