优化全局zap的打印,修复待机任务出现多个的情况
This commit is contained in:
@@ -8,7 +8,7 @@ import (
|
||||
func RunLog() leaf.HandlerFunc {
|
||||
return func(c *leaf.Context) {
|
||||
logger.Infof("收到消息, topic: %s, payload: %s", c.Topic, c.Payload)
|
||||
defer logger.Infof("执行结束")
|
||||
defer logger.Infof("处理结束")
|
||||
|
||||
c.Next()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user