Log the query in restore if there are any exceptions (#12761)

This commit is contained in:
Pere Miquel Brull 2023-08-07 11:03:47 +02:00 committed by GitHub
parent 0e08d6d412
commit 6f89ca089d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -50,7 +50,7 @@ def execute_sql_file(engine: Engine, sql_file: str) -> None:
failed_queries += 1
logger.debug(traceback.format_exc())
logger.warning(
f"Error processing the following query while restoring - {err}"
f"Error processing the following query while restoring [{clean_query}] - {err}"
)
log_ansi_encoded_string(