improve debugging
This commit is contained in:
parent
654794de61
commit
988672d2d9
@ -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
|
||||||
|
@ -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):
|
||||||
|
Loading…
Reference in New Issue
Block a user