Skip to content

Commit

Permalink
fix(backend): logs error when failing to init mysql. Fixes #4334 (#4335)
Browse files Browse the repository at this point in the history
  • Loading branch information
myonlyzzy authored and Bobgy committed Aug 12, 2020
1 parent 44cd005 commit 64c377e
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion backend/src/apiserver/client_manager.go
Original file line number Diff line number Diff line change
Expand Up @@ -295,7 +295,10 @@ func initMysql(driverName string, initConnectionTimeout time.Duration) string {
}
b := backoff.NewExponentialBackOff()
b.MaxElapsedTime = initConnectionTimeout
err = backoff.Retry(operation, b)
//err = backoff.Retry(operation, b)
backoff.RetryNotify(operation,b, func(e error, duration time.Duration) {
glog.Errorf("%v",e)
})

defer db.Close()
util.TerminateIfError(err)
Expand Down

0 comments on commit 64c377e

Please sign in to comment.