From 519d800adf79e2f87db7184ddd4b75de03eca36e Mon Sep 17 00:00:00 2001 From: meri025 Date: Fri, 19 Jul 2024 02:45:13 +0900 Subject: [PATCH 1/2] update log message --- lib/mysql_rewinder/cleaner.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/mysql_rewinder/cleaner.rb b/lib/mysql_rewinder/cleaner.rb index aec37a1..2c7d8c4 100644 --- a/lib/mysql_rewinder/cleaner.rb +++ b/lib/mysql_rewinder/cleaner.rb @@ -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. target tables: #{tables}, except tables: #{@except_tables}, all tables: #{all_tables}." } return end From a1f73adc1d3c93ecb6a5fc7eabc68c82ce6593d5 Mon Sep 17 00:00:00 2001 From: meri025 Date: Fri, 19 Jul 2024 12:19:21 +0900 Subject: [PATCH 2/2] Update lib/mysql_rewinder/cleaner.rb Co-authored-by: Yusuke Sangenya --- lib/mysql_rewinder/cleaner.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/mysql_rewinder/cleaner.rb b/lib/mysql_rewinder/cleaner.rb index 2c7d8c4..18f50eb 100644 --- a/lib/mysql_rewinder/cleaner.rb +++ b/lib/mysql_rewinder/cleaner.rb @@ -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. target tables: #{tables}, except tables: #{@except_tables}, all tables: #{all_tables}." } + @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