File tree 1 file changed +5
-3
lines changed
sonic_platform_base/sonic_xcvr/api/public
1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change 6
6
from sonic_py_common import logger
7
7
from ...fields import consts
8
8
from .cmis import CmisApi
9
+ import logging
9
10
import time
11
+
12
+
10
13
BYTELENGTH = 8
11
14
VDM_FREEZE = 128
12
15
VDM_UNFREEZE = 0
13
- SYSLOG_IDENTIFIER = "CCmisApi"
14
16
15
- helper_logger = logger .Logger (SYSLOG_IDENTIFIER )
16
17
17
18
class CCmisApi (CmisApi ):
18
19
def __init__ (self , xcvr_eeprom ):
19
20
super (CCmisApi , self ).__init__ (xcvr_eeprom )
21
+ logging .basicConfig (level = logging .DEBUG )
20
22
21
23
def get_freq_grid (self ):
22
24
'''
@@ -814,7 +816,7 @@ def get_transceiver_status(self):
814
816
trans_status ['rxsigpowerhighwarning_flag' ] = self .vdm_dict ['Rx Signal Power [dBm]' ][1 ][7 ]
815
817
trans_status ['rxsigpowerlowwarning_flag' ] = self .vdm_dict ['Rx Signal Power [dBm]' ][1 ][8 ]
816
818
except KeyError :
817
- helper_logger . log_debug ('fields not present in VDM' )
819
+ logging . debug ('fields not present in VDM' )
818
820
return trans_status
819
821
820
822
def get_transceiver_pm (self ):
You can’t perform that action at this time.
0 commit comments