改进提示

This commit is contained in:
刘祥超
2021-04-15 11:18:40 +08:00
parent 5e023a9875
commit cdfadc44cb

View File

@@ -273,7 +273,7 @@ func (this *APINode) listenRPC(listener net.Listener, tlsConfig *tls.Config) err
// 检查数据库
func (this *APINode) checkDB() error {
logs.Println("checking database connection ...")
logs.Println("[API_NODE]checking database connection ...")
db, err := dbs.Default()
if err != nil {
@@ -293,6 +293,7 @@ func (this *APINode) checkDB() error {
time.Sleep(1 * time.Second)
}
} else {
logs.Println("[API_NODE]database connected")
return nil
}
}