Skip to content
This repository has been archived by the owner on Sep 23, 2024. It is now read-only.

Commit

Permalink
Log error message for session SQLs (#92)
Browse files Browse the repository at this point in the history
  • Loading branch information
paultiplady authored Feb 23, 2022
1 parent 01ac94e commit 83b5f7e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tap_mysql/connection.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,8 @@ def run_session_sqls(connection):
for sql in session_sqls:
try:
run_sql(connection, sql)
except pymysql.err.InternalError:
warnings.append(f'Could not set session variable: {sql}')
except pymysql.err.InternalError as exc:
warnings.append(f'Could not set session variable `{sql}`: {exc}')

if warnings:
LOGGER.warning('Encountered non-fatal errors when configuring session that could impact performance:')
Expand Down

0 comments on commit 83b5f7e

Please sign in to comment.