We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 18b1603 commit c14bf3aCopy full SHA for c14bf3a
hub/log/log.py
@@ -37,7 +37,7 @@ def set_level(self, level):
37
self.__logger.setLevel(level)
38
39
def create_file(self, file_path, max_bytes, backup_count):
40
- log_handler = RotatingFileHandler(file_path, max_bytes, backup_count)
+ log_handler = RotatingFileHandler(filename=file_path, maxBytes=max_bytes, backupCount=backup_count)
41
log_handler.setFormatter(logging.Formatter(self.__format))
42
self.__logger.addHandler(log_handler)
43
0 commit comments