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
462ca804
Commit
462ca804
authored
Jun 12, 2020
by
Tim Schoof
Browse files
Add thread names to logging messages
parent
2ade74b0
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/AsapoWorker/application.py
View file @
462ca804
...
...
@@ -94,7 +94,7 @@ class Application:
def
_setup_logging
(
self
):
log_level
=
self
.
options
[
"log_level"
]
format
=
(
"%(asctime)s AsapoWorker %(filename)s:%(lineno)d "
"%(asctime)s
%(threadName)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
Supports
Markdown
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