mirror of
https://github.com/FAUSheppy/config
synced 2025-12-06 15:11:35 +01:00
another few hl fixes
This commit is contained in:
@@ -24,6 +24,6 @@ def is_laptop():
|
||||
return "laptop" in u.nodename or "atlantismedion" in u.nodename
|
||||
|
||||
def error(s):
|
||||
with open("herbstlog",'a') as f:
|
||||
with open(hlpath("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)
|
||||
f.write(time + " ERROR: " + os.path.basename(__file__) + ' ' +s +'\n')
|
||||
|
||||
Reference in New Issue
Block a user