Fix logging of error when connecting to database

This commit is contained in:
Aaron Greenberg 2017-12-12 22:34:11 -05:00
parent 0df9e7075c
commit 46bf4c470a

View File

@ -141,7 +141,7 @@ func Boot(config *Config) {
if dbError == nil { if dbError == nil {
break break
} }
log.Error(dbError); log.WithError(dbError).Error("failed to connect to database")
time.Sleep(time.Duration(attempts) * time.Second) time.Sleep(time.Duration(attempts) * time.Second)
} }
if dbError != nil { if dbError != nil {