chg: Improve logging
parent
b0633bbd26
commit
892e1b0248
|
@ -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():
|
||||
|
|
|
@ -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):
|
||||
|
|
|
@ -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):
|
||||
|
|
|
@ -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():
|
||||
|
|
|
@ -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__':
|
||||
|
|
|
@ -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():
|
||||
|
|
|
@ -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):
|
||||
|
|
|
@ -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):
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue