-
Notifications
You must be signed in to change notification settings - Fork 157
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] Add logs to improve debugging in xcvrd #539
Conversation
Signed-off-by: Mihir Patel <patelmi@microsoft.com>
sonic-xcvrd/xcvrd/xcvrd.py
Outdated
@@ -440,6 +440,7 @@ def post_port_sfp_info_to_db(logical_port_name, port_mapping, table, transceiver | |||
break | |||
|
|||
if not _wrapper_get_presence(physical_port): | |||
helper_logger.log_warning("Transceiver not present in port {}".format(logical_port_name)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@mihirpat1 may be notice should be sufficient.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@prgeor I have now modified it to notice.
@bingwang-ms Can you please help to cherry-pick this to 202405 branch? |
* [xcvrd] Add logs to improve debugging in xcvrd Signed-off-by: Mihir Patel <patelmi@microsoft.com> * Fixed unit-test failure * Improved code coverage * Changed warning to notice --------- Signed-off-by: Mihir Patel <patelmi@microsoft.com>
Cherry-pick PR to 202405: #540 |
* [xcvrd] Add logs to improve debugging in xcvrd Signed-off-by: Mihir Patel <patelmi@microsoft.com> * Fixed unit-test failure * Improved code coverage * Changed warning to notice --------- Signed-off-by: Mihir Patel <patelmi@microsoft.com>
Description
Following logs are planned to be added to xcvrd for enhancing debuggability
sonic-platform-daemons/sonic-xcvrd/xcvrd/xcvrd.py
Line 1382 in f581c06
sonic-platform-daemons/sonic-xcvrd/xcvrd/xcvrd.py
Lines 442 to 443 in f581c06
Motivation and Context
How Has This Been Tested?
Additional Information (Optional)
MSFT ADO - 29427847