forked from LiveCarta/BookConverter
Rewrite logger
This commit is contained in:
@@ -144,10 +144,11 @@ class BookSolver:
|
||||
without downloading book from server (local)
|
||||
with sending to server'''
|
||||
try:
|
||||
self.logger_object.log(f'Data has been downloaded from tmp.json file: {self.output_path}')
|
||||
self.logger_object.log(f'Data has been downloaded from tmp.json file: {self.file_path}')
|
||||
with codecs.open('json/tmp.json', 'r', encoding='utf-8') as f_json:
|
||||
content_dict = json.load(f_json)
|
||||
self.send_json_content_to_server(content_dict)
|
||||
self.logger_object.log(f'End of the conversion to LiveCarta format. Check {self.output_path}.')
|
||||
except Exception as exc:
|
||||
self.logger_object.log('Error has occurred while reading json file.' + str(exc), logging.ERROR)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user