mirror of
https://github.com/goharbor/harbor.git
synced 2024-11-23 10:45:45 +01:00
Merge pull request #127 from ywk253100/master
print the logs when UI fails to connet to DB
This commit is contained in:
commit
d721a69415
@ -82,7 +82,7 @@ func InitDB() {
|
|||||||
c.Close()
|
c.Close()
|
||||||
ch <- 1
|
ch <- 1
|
||||||
} else {
|
} 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)
|
time.Sleep(2 * time.Second)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user