Skip to content

Commit

Permalink
fix duplicate log
Browse files Browse the repository at this point in the history
  • Loading branch information
qianyun210603 committed Oct 5, 2023
1 parent 97e882e commit 91e88f7
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions qlib/log.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ def __init__(self, module_name):
def logger(self):
logger = logging.getLogger(self.module_name)
logger.setLevel(self.__level)
logger.propagate = False
return logger

def setLevel(self, level):
Expand Down

0 comments on commit 91e88f7

Please sign in to comment.