Improve logging

This commit is contained in:
Kiryl
2022-10-27 12:19:35 +03:00
parent 4cc1333b80
commit be615ddf40
5 changed files with 61 additions and 53 deletions

View File

@@ -28,9 +28,8 @@ class BookSolver:
self.preset_path = None
self.book_path = None # path to book file, appears after downloading from server
self.book_output_path = None # path to json file
self.logger_object = BookLogger(name=f"{__name__}_{self.book_id}",
book_id=book_id,
main_logger=main_logger)
self.logger_object = BookLogger(name=f"{__name__}_{self.book_id}")
self.logger_object.configure_book_logger(book_id=book_id)
self.status_wrapper = BookStatusWrapper(
access, self.logger_object, book_id)