From fe3b29ff01ea71cf6ca041686307cf2406d79c19 Mon Sep 17 00:00:00 2001 From: Gordon <46924906+FGadvancer@users.noreply.github.com> Date: Wed, 6 Dec 2023 11:45:55 +0800 Subject: [PATCH] fix: change prometheus port. --- internal/msggateway/n_ws_server.go | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/internal/msggateway/n_ws_server.go b/internal/msggateway/n_ws_server.go index 40df303020..5025c312be 100644 --- a/internal/msggateway/n_ws_server.go +++ b/internal/msggateway/n_ws_server.go @@ -17,7 +17,6 @@ package msggateway import ( "context" "errors" - "fmt" "net/http" "runtime" "strconv" @@ -383,9 +382,11 @@ func (ws *WsServer) wsHandler(w http.ResponseWriter, r *http.Request) { } maxProcs := runtime.GOMAXPROCS(0) if maxProcs == runtime.NumCPU() { - fmt.Println("进程没有受到 CPU 核心限制", maxProcs, runtime.NumCPU()) + log.ZWarn(connContext, "进程没有受到 CPU 核心限制", nil, + "maxProcs", maxProcs, "sysProcs", runtime.NumCPU()) } else { - fmt.Println("进程受到 CPU 核心限制", maxProcs, runtime.NumCPU()) + log.ZWarn(connContext, "进程受到 CPU 核心限制", nil, + "maxProcs", maxProcs, "sysProcs", runtime.NumCPU()) } var ( token string