apache / rocketmq-client-go

Apache RocketMQ go client
https://rocketmq.apache.org/
Apache License 2.0
1.28k stars 409 forks source link

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

Open WRAllen opened 6 months ago

WRAllen commented 6 months ago

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

image

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

zl03jsj commented 4 months ago

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