improve debugging

This commit is contained in:
chrys 2016-10-01 18:07:51 +02:00
parent 654794de61
commit 988672d2d9
2 changed files with 3 additions and 3 deletions

View File

@ -95,7 +95,7 @@ interruptOnKeyPress=False
doubleTapDelay=0.2 doubleTapDelay=0.2
[general] [general]
debugLevel=2 debugLevel=3
punctuationLevel=Some punctuationLevel=Some
numberOfClipboards=10 numberOfClipboards=10
# define the current fenrir key # define the current fenrir key

View File

@ -46,9 +46,9 @@ class debug():
if not self._fileOpened: if not self._fileOpened:
self.openDebugFile() self.openDebugFile()
msg = str(level) +' ' + str(datetime.utcnow().strftime('%Y-%m-%d %H:%M:%S.%f') msg = str(level) +' ' + str(datetime.utcnow().strftime('%Y-%m-%d %H:%M:%S.%f')
) + ': ' + text + '\n' ) + ': ' + text
print(msg) print(msg)
self._file.write(msg) self._file.write(msg + '\n')
def closeDebugFile(self): def closeDebugFile(self):