Skip to content

Commit cdfadc4

Browse files
committed
改进提示
1 parent 5e023a9 commit cdfadc4

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

internal/nodes/api_node.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -273,7 +273,7 @@ func (this *APINode) listenRPC(listener net.Listener, tlsConfig *tls.Config) err
273273

274274
// 检查数据库
275275
func (this *APINode) checkDB() error {
276-
logs.Println("checking database connection ...")
276+
logs.Println("[API_NODE]checking database connection ...")
277277

278278
db, err := dbs.Default()
279279
if err != nil {
@@ -293,6 +293,7 @@ func (this *APINode) checkDB() error {
293293
time.Sleep(1 * time.Second)
294294
}
295295
} else {
296+
logs.Println("[API_NODE]database connected")
296297
return nil
297298
}
298299
}

0 commit comments

Comments
 (0)