Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
WRAllen opened this issue Jan 11, 2024 · 1 comment
Open

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

WRAllen opened this issue Jan 11, 2024 · 1 comment

Comments

@WRAllen
Copy link

WRAllen commented Jan 11, 2024

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

image

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

@zl03jsj
Copy link

zl03jsj commented Mar 11, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants