Skip to content

Commit 347d8e0

Browse files
Fix tokens in inspector logging (#1226)
1 parent d90112c commit 347d8e0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

go/logic/inspect.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -141,14 +141,14 @@ func (this *Inspector) inspectOriginalAndGhostTables() (err error) {
141141
switch column.Type {
142142
case sql.FloatColumnType:
143143
{
144-
this.migrationContext.Log.Warning("Will not use %+v as shared key due to FLOAT data type", sharedUniqueKey.Name)
144+
this.migrationContext.Log.Warningf("Will not use %+v as shared key due to FLOAT data type", sharedUniqueKey.Name)
145145
uniqueKeyIsValid = false
146146
}
147147
case sql.JSONColumnType:
148148
{
149149
// Noteworthy that at this time MySQL does not allow JSON indexing anyhow, but this code
150150
// will remain in place to potentially handle the future case where JSON is supported in indexes.
151-
this.migrationContext.Log.Warning("Will not use %+v as shared key due to JSON data type", sharedUniqueKey.Name)
151+
this.migrationContext.Log.Warningf("Will not use %+v as shared key due to JSON data type", sharedUniqueKey.Name)
152152
uniqueKeyIsValid = false
153153
}
154154
}

0 commit comments

Comments
 (0)