Merge pull request #127 from ywk253100/master

print the logs when UI fails to connet to DB
This commit is contained in:
Wenkai Yin 2016-04-19 16:06:31 +08:00
commit d721a69415

View File

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