diff --git a/src/fenrir/core/debug.py b/src/fenrir/core/debug.py index 54bea24b..7b4e511c 100644 --- a/src/fenrir/core/debug.py +++ b/src/fenrir/core/debug.py @@ -38,7 +38,7 @@ class debug(): self._fileOpened = True def writeDebugOut(self, text, level = debugLevel.DEACTIVE, onAnyLevel=False): - if (self.env['runtime']['settingsManager'].getSettingAsInt('general','debugLevel') < int(level)) or \ + if (self.env['runtime']['settingsManager'].getSettingAsInt('general','debugLevel') < int(level)) and \ not (onAnyLevel and self.env['runtime']['settingsManager'].getSettingAsInt('general','debugLevel') > int(debugLevel.DEACTIVE)) : if self._fileOpened: self.closeDebugFile() @@ -47,7 +47,7 @@ class debug(): if not self._fileOpened: self.openDebugFile() if onAnyLevel: - msg = 'ANY_LEVEL '+ str(level) + str(datetime.utcnow().strftime('%Y-%m-%d %H:%M:%S.%f')) + msg = 'ANY '+ str(level) + str(datetime.utcnow().strftime('%Y-%m-%d %H:%M:%S.%f')) else: msg = str(level) +' ' + str(datetime.utcnow().strftime('%Y-%m-%d %H:%M:%S.%f') )