fix error formatting
config.Logger.Error does not want a format string.
This commit is contained in:
parent
79628be2c2
commit
be68656b87
2
gorm.go
2
gorm.go
@ -150,7 +150,7 @@ func Open(dialector Dialector, config *Config) (db *DB, err error) {
|
||||
}
|
||||
|
||||
if err != nil {
|
||||
config.Logger.Error(context.Background(), "failed to initialize database, got error %v", err)
|
||||
config.Logger.Error(context.Background(), "failed to initialize database, got error ", err)
|
||||
}
|
||||
|
||||
return
|
||||
|
Loading…
x
Reference in New Issue
Block a user