From 5804f030cc596869035f5712a8b049689f518eaf Mon Sep 17 00:00:00 2001 From: Jan Piotrowski Date: Tue, 10 Mar 2020 21:17:31 +0100 Subject: [PATCH] fix(fixPKey): better logging with table name + remove copy/pasted debug message closes #33 --- constraintsRestore.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/constraintsRestore.go b/constraintsRestore.go index 9aee450..3e5d9c1 100644 --- a/constraintsRestore.go +++ b/constraintsRestore.go @@ -47,8 +47,9 @@ func FixConstraints() { // Fix the primary key func fixPKey(pk constraint) { - Debugf("Fixing the Primary / Unique Key") + Debugf("Fixing the Primary / Unique Key for table %s", pk.table) totalViolators := 1 + // Extract the columns from the list that was collected during backup keys, err := ColExtractor(pk.column, `\(.*?\)`) if err != nil { @@ -96,7 +97,6 @@ func fixPKViolator(tab, col, dttype string) { // Fix the Foreign Keys func fixFKey(con constraint) { - Debugf("Fixing the Primary / Unique Key") totalViolators := 1 // The objects involved in this foriegn key clause