corretti livelli debug
This commit is contained in:
@@ -58,20 +58,19 @@ class fancyLogger(QObject):
|
||||
print(self.LBLUE, end='')
|
||||
self.LOGGER.debug(msg)
|
||||
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
|
||||
|
||||
def info(self, msg="Undefined Info"):
|
||||
print(self.LGREEN, end='')
|
||||
self.LOGGER.info(msg)
|
||||
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
|
||||
|
||||
def warn(self, msg="Undefined Warning"):
|
||||
print(self.LYELLOW, end='')
|
||||
self.LOGGER.warning(msg)
|
||||
self.LOGGER.
|
||||
print(self.RST, end='')
|
||||
self.sendLog.emit(f"<FONT COLOR='##fc9403'>WARNING | {msg} </br>")
|
||||
pass
|
||||
@@ -80,7 +79,7 @@ class fancyLogger(QObject):
|
||||
print(self.LRED, end='')
|
||||
self.LOGGER.error(msg)
|
||||
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
|
||||
|
||||
def critical(self, msg="Undefined Critical"):
|
||||
|
||||
@@ -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']
|
||||
|
||||
Reference in New Issue
Block a user