Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
csst-pipeline
csst_common
Commits
873890aa
Commit
873890aa
authored
Nov 08, 2022
by
BO ZHANG
🏀
Browse files
empty handlers in logger initialization
parent
888b9f4d
Changes
1
Show whitespace changes
Inline
Side-by-side
csst_common/logger.py
View file @
873890aa
...
@@ -42,6 +42,9 @@ def get_logger(name="CSST L1 Pipeline", filename=""):
...
@@ -42,6 +42,9 @@ def get_logger(name="CSST L1 Pipeline", filename=""):
"""
"""
# initialize logger
# initialize logger
logger
=
logging
.
getLogger
(
name
=
name
)
logger
=
logging
.
getLogger
(
name
=
name
)
# empty handlers
logger
.
handlers
=
[]
# set level
logger
.
setLevel
(
logging
.
DEBUG
)
logger
.
setLevel
(
logging
.
DEBUG
)
# logging formatter
# logging formatter
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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