remove logging format

This commit is contained in:
Kiryl
2021-10-06 16:12:41 +03:00
parent 2da4bb38dd
commit b767c5901c
2 changed files with 3 additions and 5 deletions

View File

@@ -20,14 +20,13 @@ from src.util.helpers import BookLogger, BookStatusWrapper
class BookSolver:
__metaclass__ = ABCMeta
def __init__(self, book_id=0, access=None, main_logger=None, logging_format='%(asctime)s - %(levelname)s - %(message)s'):
def __init__(self, book_id=0, access=None, main_logger=None):
self.book_type = None
self.book_id = book_id
self.access = access
self.file_path = None # path to book file, appears after downloading from server
self.output_path = None # path to json file
self.logger_object = BookLogger(name=f'{__name__}_{self.book_id}',
logging_format=logging_format,
book_id=book_id,
main_logger=main_logger)
self.status_wrapper = BookStatusWrapper(access, self.logger_object, book_id)

View File

@@ -3,9 +3,8 @@ from src.epub_converter.epub_converter import EpubConverter
class EpubBook(BookSolver):
def __init__(self, book_id=0, access=None, main_logger=None,
logging_format='%(asctime)s - %(levelname)s - %(message)s'):
super().__init__(book_id, access, main_logger, logging_format)
def __init__(self, book_id=0, access=None, main_logger=None):
super().__init__(book_id, access, main_logger)
self.book_type = 'epub'
def get_converted_book(self):