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

refactor: reduce ipmi log #971

Merged
merged 4 commits into from
Jun 14, 2024
Merged

Conversation

tanxiao1990
Copy link
Contributor

refactor: reduce ipmi log

state = math.NaN()
}

log.Println("msg", "Got values", "target", targetHost, "data", fmt.Sprintf("%+v", data))
if cfg.Config.DebugMode {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

这里可以参考用ins.debug。 这样--debug --inputs 就可以只输出当前插件的debug日志。

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

好的,我看下

@tanxiao1990 tanxiao1990 marked this pull request as draft June 14, 2024 04:55
@tanxiao1990 tanxiao1990 marked this pull request as ready for review June 14, 2024 05:13
@kongfei605
Copy link
Collaborator

Thank you @tanxiao1990

@kongfei605 kongfei605 merged commit 87a6144 into flashcatcloud:main Jun 14, 2024
4 of 6 checks passed
@tanxiao1990 tanxiao1990 deleted the ipmi-log branch June 14, 2024 06:11
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

Successfully merging this pull request may close these issues.

2 participants