From c149d97e8bd4a48d4ba600f3361decbe97cda14a Mon Sep 17 00:00:00 2001 From: Emanuele Date: Wed, 1 Apr 2020 14:56:12 +0200 Subject: [PATCH] corretti livelli debug --- bananaSPLIT/libbananasplit/libfancylogger.py | 7 +++---- bananaSPLIT/libbananasplit/libsplit.py | 2 +- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/bananaSPLIT/libbananasplit/libfancylogger.py b/bananaSPLIT/libbananasplit/libfancylogger.py index d1b1320..8dd95d7 100644 --- a/bananaSPLIT/libbananasplit/libfancylogger.py +++ b/bananaSPLIT/libbananasplit/libfancylogger.py @@ -58,20 +58,19 @@ class fancyLogger(QObject): print(self.LBLUE, end='') self.LOGGER.debug(msg) print(self.RST, end='') - self.sendLog.emit(f"DEBUG | {msg}
") + self.sendLog.emit(f"DEBUG | {msg}
") pass def info(self, msg="Undefined Info"): print(self.LGREEN, end='') self.LOGGER.info(msg) print(self.RST, end='') - self.sendLog.emit(f"INFO | {msg}
") + self.sendLog.emit(f"INFO | {msg}
") pass def warn(self, msg="Undefined Warning"): print(self.LYELLOW, end='') self.LOGGER.warning(msg) - self.LOGGER. print(self.RST, end='') self.sendLog.emit(f"WARNING | {msg}
") pass @@ -80,7 +79,7 @@ class fancyLogger(QObject): print(self.LRED, end='') self.LOGGER.error(msg) print(self.RST, end='') - self.sendLog.emit(f"ERROR | {msg}
") + self.sendLog.emit(f"ERROR | {msg}
") pass def critical(self, msg="Undefined Critical"): diff --git a/bananaSPLIT/libbananasplit/libsplit.py b/bananaSPLIT/libbananasplit/libsplit.py index f5f8fef..ef6f7dc 100644 --- a/bananaSPLIT/libbananasplit/libsplit.py +++ b/bananaSPLIT/libbananasplit/libsplit.py @@ -24,7 +24,7 @@ class bananaSPLITTER(QObject): self.duplicateNumber=0 #self.log.debug(f"Configurazione: \n {json.dumps(fileParams, indent=2)}") if fileParams is not None: - self.log.info("Sto operando sul file: {}..".format(self.fileParams['name'])) + self.log.debug("Sto operando sul file: {}..".format(self.fileParams['name'])) self.paths = self.fileParams['paths'] self.docStruct = self.fileParams['docStruct'] self.settings = self.fileParams['settings']