#2470: apply PR suggestions
This commit is contained in:
@@ -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
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
@@ -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):
|
||||||
|
|||||||
Reference in New Issue
Block a user