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

View File

@ -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)
}
}