Skip to content

Fix CCmisApi identifier overrides ycable identifier in syslog. #409

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

Conversation

xincunli-sonic
Copy link

Summary
This PR fixes the CCmisApi overrides ycable as SYSLOG identifier when CCmisApi became the last caller of sonic-py-common/logger.py's syslog module.

Type of change

  • Bug fix
  • Testbed and Framework(new/improvement)
  • Test case(new/improvement)

Approach
Use logging module instead of common logger to avoid overriding.

What is the motivation for this PR?
SysLog shows NOTICE pmon#CCmisApi: instead of NOTICE pmon#ycable: , which cause debug confusion and loganalysis wrong identified the component.

How did you do it?
Removed the helper_logger from CCmisApi instead using logging directly.

How did you verify/test it?
Put the change into lab device, then inspect the syslog after restart ycabled daemon process.

Any platform specific information?
This is common issue when ycabled started.

Signed-off-by: Xincun Li [email protected]

@linux-foundation-easycla
Copy link

linux-foundation-easycla bot commented Oct 24, 2023

CLA Signed

The committers listed above are authorized under a signed CLA.

@xincunli-sonic
Copy link
Author

This should be addressed by this PR: sonic-net/sonic-buildimage#17171.

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

Successfully merging this pull request may close these issues.

3 participants