From cdfadc44cb21df2008c470048083b5fcc4c6938e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=88=98=E7=A5=A5=E8=B6=85?= Date: Thu, 15 Apr 2021 11:18:40 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=B9=E8=BF=9B=E6=8F=90=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- internal/nodes/api_node.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/internal/nodes/api_node.go b/internal/nodes/api_node.go index 829a86cc..6c8def8b 100644 --- a/internal/nodes/api_node.go +++ b/internal/nodes/api_node.go @@ -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 } }