chg: Improve logging

dev
Raphaël Vinot 2021-12-17 10:54:05 +01:00
parent b0633bbd26
commit 892e1b0248
9 changed files with 9 additions and 9 deletions

View File

@ -19,7 +19,7 @@ from bgpranking.helpers import get_modules, get_data_dir
logger = logging.getLogger('Archiver')
logging.basicConfig(format='%(asctime)s %(name)s %(levelname)s:%(message)s',
level=logging.INFO, datefmt='%I:%M:%S')
level=logging.INFO)
class DeepArchive():

View File

@ -12,7 +12,7 @@ from bgpranking.default import get_socket_path, safe_create_dir, AbstractManager
from bgpranking.helpers import get_data_dir
logging.basicConfig(format='%(asctime)s %(name)s %(levelname)s:%(message)s',
level=logging.INFO, datefmt='%I:%M:%S')
level=logging.INFO)
class ASNDescriptions(AbstractManager):

View File

@ -13,7 +13,7 @@ from bgpranking.helpers import get_ipasn, sanity_check_ipasn
logging.basicConfig(format='%(asctime)s %(name)s %(levelname)s:%(message)s',
level=logging.INFO, datefmt='%I:%M:%S')
level=logging.INFO)
class DBInsertManager(AbstractManager):

View File

@ -19,7 +19,7 @@ from bgpranking.helpers import get_modules, get_data_dir, get_modules_dir
logging.basicConfig(format='%(asctime)s %(name)s %(levelname)s:%(message)s',
level=logging.INFO, datefmt='%I:%M:%S')
level=logging.INFO)
class Fetcher():

View File

@ -10,7 +10,7 @@ from bgpranking.helpers import load_all_modules_configs
from .ranking import Ranking
logging.basicConfig(format='%(asctime)s %(name)s %(levelname)s:%(message)s',
level=logging.DEBUG, datefmt='%I:%M:%S')
level=logging.INFO)
if __name__ == '__main__':

View File

@ -21,7 +21,7 @@ from bgpranking.helpers import get_modules, get_data_dir, get_modules_dir
logging.basicConfig(format='%(asctime)s %(name)s %(levelname)s:%(message)s',
level=logging.INFO, datefmt='%I:%M:%S')
level=logging.INFO)
class RawFilesParser():

View File

@ -14,7 +14,7 @@ from bgpranking.default import AbstractManager, get_config
from bgpranking.helpers import get_ipasn, sanity_check_ipasn, load_all_modules_configs
logging.basicConfig(format='%(asctime)s %(name)s %(levelname)s:%(message)s',
level=logging.INFO, datefmt='%I:%M:%S')
level=logging.INFO)
class Ranking(AbstractManager):

View File

@ -16,7 +16,7 @@ from bgpranking.default import AbstractManager, get_socket_path
from bgpranking.helpers import get_ipasn, sanity_check_ipasn
logging.basicConfig(format='%(asctime)s %(name)s %(levelname)s:%(message)s',
level=logging.WARNING, datefmt='%I:%M:%S')
level=logging.INFO)
class Sanitizer(AbstractManager):

View File

@ -19,7 +19,7 @@ from bgpranking.helpers import get_data_dir, get_modules_dir
logging.basicConfig(format='%(asctime)s %(name)s %(levelname)s:%(message)s',
level=logging.INFO, datefmt='%I:%M:%S')
level=logging.INFO)
Dates = TypeVar('Dates', datetime, date, str)