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

fix(log): set logrus logLevel according to the global log level #1490

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

byte-msft
Copy link
Contributor

Description

After setting logLevel: debug in the ConfigMap, some agent loggers are still on info level.

This is not consistent. For instance, this logger DOES correctly use debug level

level=debug caller=packetparser/packetparser_linux.go
whereas components like payload parser will NOT ever send debug logs.

This PR sets the logrus logLevel according to the global log level.

Related Issue

#597

Checklist

  • I have read the contributing documentation.
  • I signed and signed-off the commits (git commit -S -s ...). See this documentation on signing commits.
  • I have correctly attributed the author(s) of the code.
  • I have tested the changes locally.
  • I have followed the project's style guidelines.
  • I have updated the documentation, if necessary.
  • I have added tests, if applicable.

Screenshots (if applicable) or Testing Completed

Please add any relevant screenshots or GIFs to showcase the changes made.

Additional Notes

Add any additional notes or context about the pull request here.


Please refer to the CONTRIBUTING.md file for more information on how to contribute to this project.

@byte-msft byte-msft requested a review from a team as a code owner March 28, 2025 13:10
@byte-msft byte-msft linked an issue Mar 28, 2025 that may be closed by this pull request
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.

[log] agent logLevel not working properly
1 participant