Skip to content

Commit 16a9026

Browse files
authored
Merge pull request #11 from meri025/update-log-message
Add detailed debug information when target_tables is empty
2 parents 5e9c768 + a1f73ad commit 16a9026

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/mysql_rewinder/cleaner.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ def clean(tables:)
2121
target_tables = (tables - @except_tables) & all_tables
2222

2323
if target_tables.empty?
24-
@logger&.debug { "[MysqlRewinder][#{@db_config[:database]}] Skip DELETE query because target_table is empty." }
24+
@logger&.debug { "[MysqlRewinder][#{@db_config[:database]}] Skip DELETE query because target_table is empty. tables: #{tables}, @except_tables: #{@except_tables}, all_tables: #{all_tables}." }
2525
return
2626
end
2727

0 commit comments

Comments
 (0)