mirror of
https://github.com/aljazceru/Auto-GPT.git
synced 2025-12-18 22:44:21 +01:00
fix(logger): fix file handler not outputing DEBUG
This commit is contained in:
@@ -45,7 +45,7 @@ class Logger(metaclass=Singleton):
|
|||||||
|
|
||||||
# Info handler in activity.log
|
# Info handler in activity.log
|
||||||
self.file_handler = logging.FileHandler(os.path.join(log_dir, log_file))
|
self.file_handler = logging.FileHandler(os.path.join(log_dir, log_file))
|
||||||
self.file_handler.setLevel(logging.INFO)
|
self.file_handler.setLevel(logging.DEBUG)
|
||||||
info_formatter = AutoGptFormatter('%(asctime)s %(levelname)s %(title)s %(message_no_color)s')
|
info_formatter = AutoGptFormatter('%(asctime)s %(levelname)s %(title)s %(message_no_color)s')
|
||||||
self.file_handler.setFormatter(info_formatter)
|
self.file_handler.setFormatter(info_formatter)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user