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

[xcvrd][thermalctld] Add logger instances for helper functions and classes #82

Merged
merged 3 commits into from
Aug 8, 2020
Merged

[xcvrd][thermalctld] Add logger instances for helper functions and classes #82

merged 3 commits into from
Aug 8, 2020

Conversation

jleveque
Copy link
Contributor

@jleveque jleveque commented Aug 7, 2020

Previous commit to transition to importing sonic-py-common accidentally replaced all logger instances in xcvrd with self, although not all of these instances resided in the DaemonXcvrd class, breaking them. Here we add a global Logger instance for these references to use. Eventually we should refactor so that there is only one Logger instance created by xcvrd, not two.

  • Also rename class names using PascalCase for consistency across the codebase.
  • Also add Logger instance to ThermalMonitor class in thermalctld

@jleveque jleveque requested a review from lguohan August 7, 2020 23:59
@jleveque jleveque self-assigned this Aug 7, 2020
@jleveque jleveque changed the title [xcvrd] Add global helper_logger instance for helper functions and classes [xcvrd][thermalctld] Add logger instances for helper functions and classes Aug 8, 2020
@jleveque jleveque merged commit da3dfbb into sonic-net:master Aug 8, 2020
@jleveque jleveque deleted the fix_xcvrd_logging branch August 8, 2020 00:31
vdahiya12 pushed a commit to vdahiya12/sonic-platform-daemons that referenced this pull request Apr 4, 2022
…re-api

[component]: Introduce new firmware management API
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.

1 participant