Skip to content

Commit

Permalink
Log table name while freeze exception (#195)
Browse files Browse the repository at this point in the history
* Log table name while freeze exception

* Change log level to error

---------

Co-authored-by: Kirill <[email protected]>
  • Loading branch information
MedvedewEM and kirillgarbar authored Oct 21, 2024
1 parent a2ad993 commit fc98afb
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions ch_backup/logic/table.py
Original file line number Diff line number Diff line change
Expand Up @@ -194,6 +194,11 @@ def _freeze_table(
context.ch_ctl.freeze_table(backup_name, table)
except ClickhouseError:
if context.ch_ctl.does_table_exist(table.database, table.name):
logging.error(
'Cannot freeze table "{}"."{}"',
table.database,
table.name,
)
raise

logging.warning(
Expand Down

0 comments on commit fc98afb

Please sign in to comment.