Skip to content

Commit

Permalink
Change log level for error message
Browse files Browse the repository at this point in the history
  • Loading branch information
gpunathilell committed Jun 26, 2024
1 parent 12ae1ea commit 0e15dcb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ def dpu_power_off(self, forced=False):
def _power_on_force(self, count=4):
"""Per DPU Power on with force private function"""
if count < 4:
logger.log_info(f"{self.get_name()}: Failed Force Power on! Retry {4-count}..")
logger.log_error(f"{self.get_name()}: Failed Force Power on! Retry {4-count}..")
self.write_file(self.set_pwr_f_path, "0")
get_rdy_inotify = InotifyHelper(self.get_dpu_rdy_path)
dpu_rdy = get_rdy_inotify.wait_watch(WAIT_FOR_DPU_READY, 1)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -504,7 +504,7 @@ def _is_dataplane_online(self):
npu_dpu_mapping = platform_dpus_data[self.get_name().lower()]["interface"]
self.npu_interface = list(npu_dpu_mapping.keys())[0]
oper_status = self.app_db.get("APPL_DB", "PORT_TABLE:" + self.npu_interface, "oper_status")
return oper_status == "up":
return oper_status == "up"

def _is_online(self):
return utils.read_int_from_file(f'/run/hw-management/events/{self._dpu_hw_name}_ready') == 1

0 comments on commit 0e15dcb

Please sign in to comment.