mirror of
https://github.com/FAUSheppy/config
synced 2025-12-10 08:38:32 +01:00
outsourced hl errorhandling
This commit is contained in:
8
herbstluftwm/hl_error.py
Executable file
8
herbstluftwm/hl_error.py
Executable file
@@ -0,0 +1,8 @@
|
||||
import datetime
|
||||
import sys
|
||||
import os
|
||||
|
||||
def error(s):
|
||||
with open("herbstlog",'a') as f:
|
||||
time = str(datetime.datetime.now().time())[:-7] #cut seconds at the end
|
||||
f.write(time + "ERROR" + os.path.basename(__file__) + s)
|
||||
Reference in New Issue
Block a user