apache / rocketmq-client-go

Apache RocketMQ go client

Home Page:https://rocketmq.apache.org/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

update offset to broker success这个日志输出太多

WRAllen opened this issue · comments

每次看diamond里面的log,用到mq的pod看日志一次可以打三十几行的:update offset to broker success

image

而且2~3秒一次,日志一下子就被刷掉了,有没有办法降低info为debug,或者不打印这个update offset to broker success

commented

Set log level by your code:

import (
"github.com/apache/rocketmq-client-go/v2/rlog"
)
.....
	rlog.SetLogLevel("warn")
.....

Or you can set the environment :

export ROCKETMQ_GO_LOG_LEVEL = warn