From 19744a6e3194337474c455c44dca56ed3468fab6 Mon Sep 17 00:00:00 2001 From: Junchao-Mellanox <57339448+Junchao-Mellanox@users.noreply.github.com> Date: Mon, 17 Jun 2024 10:46:39 +0800 Subject: [PATCH] [xcvrd] Fix issue: do not print error log when module support non-ethernet application (#501) --- sonic-xcvrd/xcvrd/xcvrd.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/sonic-xcvrd/xcvrd/xcvrd.py b/sonic-xcvrd/xcvrd/xcvrd.py index 12f14c581..c8e355cb3 100644 --- a/sonic-xcvrd/xcvrd/xcvrd.py +++ b/sonic-xcvrd/xcvrd/xcvrd.py @@ -194,8 +194,7 @@ def get_interface_speed(ifname): speed = 10000 elif '1000BASE' in ifname: speed = 1000 - else: - helper_logger.log_error("No interface speed found for: '{}'".format(ifname)) + return speed