fix: remove datefmt from logging.basicConfig, it was a bad idea.

pull/254/head
Raphaël Vinot 2021-09-01 10:40:59 +02:00
parent 5f41902fe6
commit 797de9ddb3
7 changed files with 7 additions and 7 deletions

View File

@ -14,7 +14,7 @@ from lookyloo.abstractmanager import AbstractManager
from lookyloo.helpers import get_config, get_homedir, get_socket_path, get_captures_dir
logging.basicConfig(format='%(asctime)s %(name)s %(levelname)s:%(message)s',
level=logging.INFO, datefmt='%I:%M:%S')
level=logging.INFO)
class Archiver(AbstractManager):

View File

@ -24,7 +24,7 @@ from lookyloo.helpers import (splash_status, get_socket_path,
from lookyloo.lookyloo import Lookyloo
logging.basicConfig(format='%(asctime)s %(name)s %(levelname)s:%(message)s',
level=logging.INFO, datefmt='%I:%M:%S')
level=logging.INFO)
class AsyncCapture(AbstractManager):

View File

@ -9,7 +9,7 @@ from lookyloo.lookyloo import Lookyloo
from lookyloo.exceptions import NoValidHarFile, MissingUUID
logging.basicConfig(format='%(asctime)s %(name)s %(levelname)s:%(message)s',
level=logging.INFO, datefmt='%I:%M:%S')
level=logging.INFO)
class BackgroundIndexer(AbstractManager):

View File

@ -15,7 +15,7 @@ from lookyloo.helpers import (get_config, get_homedir, get_socket_path,
safe_create_dir)
logging.basicConfig(format='%(asctime)s %(name)s %(levelname)s:%(message)s',
level=logging.INFO, datefmt='%I:%M:%S')
level=logging.INFO)
class Processing(AbstractManager):

View File

@ -7,7 +7,7 @@ import logging
from lookyloo.lookyloo import Lookyloo, Indexing
logging.basicConfig(format='%(asctime)s %(name)s %(levelname)s:%(message)s',
level=logging.INFO, datefmt='%I:%M:%S')
level=logging.INFO)
def main():

View File

@ -9,7 +9,7 @@ from lookyloo.abstractmanager import AbstractManager
from lookyloo.helpers import get_homedir, get_config
logging.basicConfig(format='%(asctime)s %(name)s %(levelname)s:%(message)s',
level=logging.INFO, datefmt='%I:%M:%S')
level=logging.INFO)
class Website(AbstractManager):

View File

@ -13,7 +13,7 @@ from pathlib import Path
from lookyloo.helpers import get_homedir
logging.basicConfig(format='%(asctime)s %(name)s %(levelname)s:%(message)s',
level=logging.INFO, datefmt='%I:%M:%S')
level=logging.INFO)
def compute_hash_self():