user logger in apply_config

patch bump
This commit is contained in:
onyx-and-iris
2022-09-29 12:34:02 +01:00
parent 2048a807d1
commit bfa1a718f9
3 changed files with 17 additions and 53 deletions

View File

@@ -156,9 +156,9 @@ class VbanCmd(metaclass=ABCMeta):
)
try:
self.apply(self.configs[name])
print(f"Profile '{name}' applied!")
self.logger.info(f"Profile '{name}' applied!")
except KeyError as e:
print(("\n").join(error_msg))
self.logger.error(("\n").join(error_msg))
def logout(self):
self.running = False