Private
Public Access
1
0

adding extra log

This commit is contained in:
Sander Roosendaal
2020-07-07 17:43:45 +02:00
parent 30a3602774
commit 001cf55591
3 changed files with 23 additions and 28 deletions

View File

@@ -41,7 +41,7 @@ def time_in_path(df,p,maxmin='max',getall=False,name='unknown',logfile=None):
if logfile is not None:
t = time.localtime()
timestamp = time.strftime('%b-%d-%Y_%H%M', t)
with open(logfile,'a') as f:
with open(logfile,'ab') as f:
f.write('\n')
f.write(timestamp)
f.write(' ')
@@ -65,7 +65,7 @@ def time_in_path(df,p,maxmin='max',getall=False,name='unknown',logfile=None):
if logfile is not None:
t = time.localtime()
timestamp = time.strftime('%b-%d-%Y_%H%M', t)
with open(logfile,'a') as f:
with open(logfile,'ab') as f:
f.write('\n')
f.write(timestamp)
f.write(' ')