#2470: apply PR suggestions

This commit is contained in:
Czar Echavez
2024-04-23 16:52:53 +01:00
parent 57e6f8bca7
commit 90343bd5ec
3 changed files with 3 additions and 3 deletions

View File

@@ -223,5 +223,5 @@ class File(FileSystemItemABC):
self.num_access += 1 # file was accessed self.num_access += 1 # file was accessed
self.deleted = True self.deleted = True
self.sys_log.warning(f"File deleted {self.folder_name}/{self.name}") self.sys_log.info(f"File deleted {self.folder_name}/{self.name}")
return True return True

View File

@@ -307,7 +307,7 @@ class WiredNetworkInterface(NetworkInterface, ABC):
return False return False
if self._connected_node.operating_state != NodeOperatingState.ON: if self._connected_node.operating_state != NodeOperatingState.ON:
self._connected_node.sys_log.error( self._connected_node.sys_log.warning(
f"Interface {self} cannot be enabled as the connected Node is not powered on" f"Interface {self} cannot be enabled as the connected Node is not powered on"
) )
return False return False

View File

@@ -177,7 +177,7 @@ class DataManipulationBot(Application):
self.sys_log.info(f"{self.name}: Data manipulation successful") self.sys_log.info(f"{self.name}: Data manipulation successful")
self.attack_stage = DataManipulationAttackStage.SUCCEEDED self.attack_stage = DataManipulationAttackStage.SUCCEEDED
else: else:
self.sys_log.error(f"{self.name}: Data manipulation failed") self.sys_log.warning(f"{self.name}: Data manipulation failed")
self.attack_stage = DataManipulationAttackStage.FAILED self.attack_stage = DataManipulationAttackStage.FAILED
def run(self): def run(self):