From 988672d2d9e32e19cbd9cd0556a36d1e68940fc1 Mon Sep 17 00:00:00 2001 From: chrys Date: Sat, 1 Oct 2016 18:07:51 +0200 Subject: [PATCH] improve debugging --- config/settings/settings.conf | 2 +- src/fenrir-package/core/debug.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/config/settings/settings.conf b/config/settings/settings.conf index 21c161eb..5934063c 100644 --- a/config/settings/settings.conf +++ b/config/settings/settings.conf @@ -95,7 +95,7 @@ interruptOnKeyPress=False doubleTapDelay=0.2 [general] -debugLevel=2 +debugLevel=3 punctuationLevel=Some numberOfClipboards=10 # define the current fenrir key diff --git a/src/fenrir-package/core/debug.py b/src/fenrir-package/core/debug.py index 7bbfbcf9..9b64b035 100644 --- a/src/fenrir-package/core/debug.py +++ b/src/fenrir-package/core/debug.py @@ -46,9 +46,9 @@ class debug(): if not self._fileOpened: self.openDebugFile() msg = str(level) +' ' + str(datetime.utcnow().strftime('%Y-%m-%d %H:%M:%S.%f') -) + ': ' + text + '\n' +) + ': ' + text print(msg) - self._file.write(msg) + self._file.write(msg + '\n') def closeDebugFile(self):