From e3ce8c31f8f447befa95a22643d8d211716ce9bb Mon Sep 17 00:00:00 2001 From: chrys Date: Wed, 19 Oct 2016 22:29:06 +0200 Subject: [PATCH] improve debugging --- src/fenrir/core/debug.py | 2 +- src/fenrir/core/settingsManager.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/fenrir/core/debug.py b/src/fenrir/core/debug.py index 0935af91..54bea24b 100644 --- a/src/fenrir/core/debug.py +++ b/src/fenrir/core/debug.py @@ -47,7 +47,7 @@ class debug(): if not self._fileOpened: self.openDebugFile() if onAnyLevel: - msg = 'INFO ' + str(datetime.utcnow().strftime('%Y-%m-%d %H:%M:%S.%f')) + msg = 'ANY_LEVEL '+ 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') ) diff --git a/src/fenrir/core/settingsManager.py b/src/fenrir/core/settingsManager.py index 34dec645..7ec44dfb 100644 --- a/src/fenrir/core/settingsManager.py +++ b/src/fenrir/core/settingsManager.py @@ -64,7 +64,7 @@ class settingsManager(): shortcut.append(shortcutRepeat) shortcut.append(sorted(shortcutKeys)) if len(shortcutKeys) != 1 and not 'KEY_FENRIR' in shortcutKeys: - self.env['runtime']['debug'].writeDebugOut("invalid shortcut (missing KEY_FENRIR): "+ str(shortcut) + ' command:' +commandName ,debug.debugLevel.ERROR, onAnyLevel=True) + self.env['runtime']['debug'].writeDebugOut("invalid shortcut (missing KEY_FENRIR): "+ str(shortcut) + ' command:' +commandName ,debug.debugLevel.ERROR) continue self.env['runtime']['debug'].writeDebugOut("Shortcut: "+ str(shortcut) + ' command:' +commandName ,debug.debugLevel.INFO, onAnyLevel=True) self.env['bindings'][str(shortcut)] = commandName