From 74a65f0dc7cf150791e6266342e47572713da521 Mon Sep 17 00:00:00 2001 From: AlexCXC <1223408988@qq.com> Date: Tue, 24 Oct 2023 15:00:00 +0800 Subject: [PATCH] opt page-to-pdf log --- dtable_events/dtable_io/__init__.py | 2 +- dtable_events/dtable_io/excel.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/dtable_events/dtable_io/__init__.py b/dtable_events/dtable_io/__init__.py index f65c7d47..f0f48e69 100644 --- a/dtable_events/dtable_io/__init__.py +++ b/dtable_events/dtable_io/__init__.py @@ -882,7 +882,7 @@ def check_images_and_networks(driver, frequency=0.5): f.write(base64.b64decode(v)) dtable_io_logger.info('convert page to pdf success!') except Exception as e: - dtable_io_logger.error('execute printToPDF error: {}'.format(e)) + dtable_io_logger.exception('execute printToPDF error: {}'.format(e)) driver.quit() diff --git a/dtable_events/dtable_io/excel.py b/dtable_events/dtable_io/excel.py index b3a72bad..fb49f85b 100644 --- a/dtable_events/dtable_io/excel.py +++ b/dtable_events/dtable_io/excel.py @@ -1628,7 +1628,7 @@ def write_xls_with_type(data_list, email2nickname, ws, row_num, dtable_uuid, rep try: add_nickname_to_cell(unknown_user_set, unknown_cell_list) except Exception as e: - dtable_io_logger.error('add nickname to cell error: {}'.format(e)) + dtable_io_logger.exception('add nickname to cell error: {}'.format(e)) for row in row_list: ws.append(row)