Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

opt page-to-pdf log #545

Merged
merged 1 commit into from
Oct 24, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion dtable_events/dtable_io/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()

Expand Down
2 changes: 1 addition & 1 deletion dtable_events/dtable_io/excel.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down