1
0
mirror of https://github.com/goharbor/harbor synced 2025-04-26 19:46:04 +00:00

print the logs when UI fails to connet to DB

This commit is contained in:
Wenkai Yin 2016-04-19 16:00:23 +08:00
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)
}
}