#2887 - Remove debug print statements

This commit is contained in:
Charlie Crane
2025-02-03 11:32:07 +00:00
parent 3d01f52eea
commit 0920ec5f5b

View File

@@ -2100,17 +2100,14 @@ class Node(SimComponent, ABC):
def power_on(self) -> bool: def power_on(self) -> bool:
"""Power on the Node, enabling its NICs if it is in the OFF state.""" """Power on the Node, enabling its NICs if it is in the OFF state."""
print("HI")
if self.config.start_up_duration <= 0: if self.config.start_up_duration <= 0:
self.operating_state = NodeOperatingState.ON self.operating_state = NodeOperatingState.ON
print(f"Powering On: f{self.config.hostname}")
self._start_up_actions() self._start_up_actions()
self.sys_log.info("Power on") self.sys_log.info("Power on")
for network_interface in self.network_interfaces.values(): for network_interface in self.network_interfaces.values():
network_interface.enable() network_interface.enable()
return True return True
if self.operating_state == NodeOperatingState.OFF: if self.operating_state == NodeOperatingState.OFF:
print("OOOOOOOOOOOOOOOOOOH")
self.operating_state = NodeOperatingState.BOOTING self.operating_state = NodeOperatingState.BOOTING
self.config.start_up_countdown = self.config.start_up_duration self.config.start_up_countdown = self.config.start_up_duration
return True return True