Skip to content

Commit

Permalink
Use the right logger variable
Browse files Browse the repository at this point in the history
  • Loading branch information
arahlin committed Oct 27, 2023
1 parent 8eed700 commit 83ee043
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions xfaster/xfaster_class.py
Original file line number Diff line number Diff line change
Expand Up @@ -439,9 +439,9 @@ def root_notice(msg, *args, **kwargs):
# configure logger
self.logger = logging.getLogger("xfaster")
# replace any existing handlers before adding one
if logger.hasHandlers():
for h in list(logger.handlers):
logger.removeHandler(h)
if self.logger.hasHandlers():
for h in list(self.logger.handlers):
self.logger.removeHandler(h)
self.logger.addHandler(handler)

# set logging level
Expand Down

0 comments on commit 83ee043

Please sign in to comment.