From e98731c1b37c60b4c4b6355c885c67feaf5c007f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=BB=8E=E7=99=BD=E5=8D=97?= <1762386214@qq.com> Date: Fri, 8 Oct 2021 21:19:04 +0800 Subject: [PATCH] fix(log) fix produce msg, remove more route --- pkg/logx/logx.go | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/pkg/logx/logx.go b/pkg/logx/logx.go index 1f70005..a173a73 100644 --- a/pkg/logx/logx.go +++ b/pkg/logx/logx.go @@ -11,7 +11,12 @@ import ( "time" ) +var ( + floor = 3 +) + func With(ctx context.Context, p event.ProduceInterface) *upLogger { + floor = 4 return &upLogger{ ctx: ctx, produce: p, @@ -85,7 +90,7 @@ func findPlace() string { var ( place string - i = 3 + i = floor ) for {