Fixed logger level

This commit is contained in:
Dionysus 2024-03-11 23:06:25 -04:00
parent de3878ef6b
commit c3b9cb9e08
Signed by: acidvegas
GPG Key ID: EF4B922DB85DC9DE
1 changed files with 1 additions and 1 deletions

View File

@ -138,7 +138,7 @@ class ElasticIndexer:
raise Exception(f'Failed to index records to {self.es_index} from {file_path} ({e})')
def setup_logger(name: str, level: logging._Level = logging.INFO, to_file: bool = False, max_bytes: int = 250000, backups: int = 7) -> logging.Logger:
def setup_logger(name: str, level: int = logging.INFO, to_file: bool = False, max_bytes: int = 250000, backups: int = 7) -> logging.Logger:
'''
Setup a custom logger with options for console and file logging.