From 259cfd9c4802214f88d5b101ddf2a0d4b554b1de Mon Sep 17 00:00:00 2001
From: liuxiaolong <liuxiaolong@aiotlink.com>
Date: 星期一, 08 二月 2021 16:32:51 +0800
Subject: [PATCH] 减少日志输出
---
micronode.go | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/micronode.go b/micronode.go
index 36c86f7..1f9fefc 100644
--- a/micronode.go
+++ b/micronode.go
@@ -23,7 +23,7 @@
}
func NewMicroNode(ctx context.Context,q chan os.Signal, serverId string, reg *RegisterInfo, fnLog func(v ...interface{})) (*MicroNode, error){
- conf := NewConfig(KEY_REGISTER,512,5,1000,1000,1000, fnLog)
+ conf := NewConfig(KEY_REGISTER,512,5,5000,5000,2000, fnLog)
handle, err := Register(ctx, q, conf, reg)
if err != nil {
return nil, err
@@ -285,7 +285,7 @@
if f,ok := ms.handlers[reqBody.Path];ok {
reqBody.SrcProc = msgR.SrcProc
ri = f(&reqBody)
- ms.printLog("call funcMap f,reply:", *ri)
+ ms.printLog("call funcMap f,reply.Success:", ri.Success)
} else {
ms.printLog("ms.funcMap not eixst path: ", reqBody.Path)
ri = &Reply{
--
Gitblit v1.8.0