Skip to content

Commit

Permalink
Merge pull request #11 from meri025/update-log-message
Browse files Browse the repository at this point in the history
Add detailed debug information when target_tables is empty
  • Loading branch information
genya0407 authored Jul 19, 2024
2 parents 5e9c768 + a1f73ad commit 16a9026
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/mysql_rewinder/cleaner.rb
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ def clean(tables:)
target_tables = (tables - @except_tables) & all_tables

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

Expand Down

0 comments on commit 16a9026

Please sign in to comment.