mirror of
https://github.com/goharbor/harbor.git
synced 2024-11-30 06:03:45 +01:00
print the logs when UI fails to connet to DB
This commit is contained in:
parent
6779274b54
commit
6e5ad732dc
@ -82,7 +82,7 @@ func InitDB() {
|
||||
c.Close()
|
||||
ch <- 1
|
||||
} else {
|
||||
log.Info("failed to connect to db, retry after 2 seconds...")
|
||||
log.Errorf("failed to connect to db, retry after 2 seconds :%v", err)
|
||||
time.Sleep(2 * time.Second)
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user