1
0
mirror of https://github.com/EDCD/EDMarketConnector.git synced 2025-04-13 07:47:14 +03:00

EDMCLogging: loglevel is str | int

This commit is contained in:
Athanasius 2022-12-22 12:05:19 +00:00
parent 19f3df77f2
commit acbe1231ef
No known key found for this signature in database
GPG Key ID: 772697E181BB2767

View File

@ -145,7 +145,7 @@ class Logger:
logging.Logger instance.
"""
def __init__(self, logger_name: str, loglevel: int = _default_loglevel):
def __init__(self, logger_name: str, loglevel: int | str = _default_loglevel):
"""
Set up a `logging.Logger` with our preferred configuration.
@ -541,7 +541,7 @@ def get_main_logger(sublogger_name: str = '') -> 'LoggerMixin':
# Singleton
loglevel = config.get_str('loglevel')
loglevel: str | int = config.get_str('loglevel')
if not loglevel:
loglevel = logging.INFO