From b17300dc082040c9f095a46fe89548b66a5c9774 Mon Sep 17 00:00:00 2001 From: booksword Date: Thu, 5 Oct 2023 09:16:14 +0800 Subject: [PATCH] fix duplicate log --- qlib/log.py | 1 + 1 file changed, 1 insertion(+) diff --git a/qlib/log.py b/qlib/log.py index f7683d5116..a2aefdb34d 100644 --- a/qlib/log.py +++ b/qlib/log.py @@ -36,6 +36,7 @@ def __init__(self, module_name): def logger(self): logger = logging.getLogger(self.module_name) logger.setLevel(self.__level) + logger.parent.propagate = False return logger def setLevel(self, level):