corretti livelli debug

This commit is contained in:
2020-04-01 14:56:12 +02:00
parent fbf8719591
commit c149d97e8b
2 changed files with 4 additions and 5 deletions

View File

@@ -58,20 +58,19 @@ class fancyLogger(QObject):
print(self.LBLUE, end='') print(self.LBLUE, end='')
self.LOGGER.debug(msg) self.LOGGER.debug(msg)
print(self.RST, end='') print(self.RST, end='')
self.sendLog.emit(f"<FONT COLOR='#03c2fc'>DEBUG | {msg} </br>") self.sendLog.emit(f"<FONT COLOR='#03c2fc'>DEBUG | {msg} </br>")
pass pass
def info(self, msg="Undefined Info"): def info(self, msg="Undefined Info"):
print(self.LGREEN, end='') print(self.LGREEN, end='')
self.LOGGER.info(msg) self.LOGGER.info(msg)
print(self.RST, end='') print(self.RST, end='')
self.sendLog.emit(f"<FONT COLOR='#6bfc03'>INFO | {msg} </br>") self.sendLog.emit(f"<FONT COLOR='#6bfc03'>INFO | {msg} </br>")
pass pass
def warn(self, msg="Undefined Warning"): def warn(self, msg="Undefined Warning"):
print(self.LYELLOW, end='') print(self.LYELLOW, end='')
self.LOGGER.warning(msg) self.LOGGER.warning(msg)
self.LOGGER.
print(self.RST, end='') print(self.RST, end='')
self.sendLog.emit(f"<FONT COLOR='##fc9403'>WARNING | {msg} </br>") self.sendLog.emit(f"<FONT COLOR='##fc9403'>WARNING | {msg} </br>")
pass pass
@@ -80,7 +79,7 @@ class fancyLogger(QObject):
print(self.LRED, end='') print(self.LRED, end='')
self.LOGGER.error(msg) self.LOGGER.error(msg)
print(self.RST, end='') print(self.RST, end='')
self.sendLog.emit(f"<FONT COLOR='#ff0000'>ERROR | {msg} </br>") self.sendLog.emit(f"<FONT COLOR='#ff0000'>ERROR | {msg} </br>")
pass pass
def critical(self, msg="Undefined Critical"): def critical(self, msg="Undefined Critical"):

View File

@@ -24,7 +24,7 @@ class bananaSPLITTER(QObject):
self.duplicateNumber=0 self.duplicateNumber=0
#self.log.debug(f"Configurazione: \n {json.dumps(fileParams, indent=2)}") #self.log.debug(f"Configurazione: \n {json.dumps(fileParams, indent=2)}")
if fileParams is not None: 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.paths = self.fileParams['paths']
self.docStruct = self.fileParams['docStruct'] self.docStruct = self.fileParams['docStruct']
self.settings = self.fileParams['settings'] self.settings = self.fileParams['settings']