Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
OpenPCDet
Commits
65554a52
Unverified
Commit
65554a52
authored
Dec 06, 2021
by
Dingry
Committed by
GitHub
Dec 06, 2021
Browse files
Disable logger propogation to avoid repeat logging (#698)
parent
d9e76fe9
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
0 deletions
+1
-0
pcdet/utils/common_utils.py
pcdet/utils/common_utils.py
+1
-0
No files found.
pcdet/utils/common_utils.py
View file @
65554a52
...
...
@@ -95,6 +95,7 @@ def create_logger(log_file=None, rank=0, log_level=logging.INFO):
file_handler
.
setLevel
(
log_level
if
rank
==
0
else
'ERROR'
)
file_handler
.
setFormatter
(
formatter
)
logger
.
addHandler
(
file_handler
)
logger
.
propagate
=
False
return
logger
...
...
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