Fix logging of error when connecting to database
This commit is contained in:
parent
0df9e7075c
commit
46bf4c470a
@ -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 {
|
||||||
|
Loading…
Reference in New Issue
Block a user