Private
Public Access
1
0

additional logging

This commit is contained in:
2023-09-21 08:51:40 +02:00
parent 7dd62a9776
commit d23b71e9f3
5 changed files with 29 additions and 6 deletions

View File

@@ -1496,13 +1496,14 @@ def handle_calctrimp(id,
normv = response.normv
normw = response.normw
hrtss = response.hrtss
dologging('metrics.log','Got tss {tss}, normp {normp} trimp {trimp} normv {normv} normw {normw} hrtss {hrtss}'.format(
dologging('metrics.log','File {csvfile}. Got tss {tss}, normp {normp} trimp {trimp} normv {normv} normw {normw} hrtss {hrtss}'.format(
tss = tss,
normp = normp,
trimp = trimp,
normv = normv,
normw = normw,
hrtss = hrtss
hrtss = hrtss,
csvfile=csvfile,
))
@@ -1555,6 +1556,10 @@ def handle_calctrimp(id,
workout.normv = normv
workout.normw = normw
workout.save()
dologging('metrics.log','Saving to workout {id} {obscure}'.format(
id = id,
obscure = encoder.encode_hex(id)
))
return 1

Binary file not shown.

View File

@@ -149,6 +149,10 @@ def do_sync(w, options, quick=False):
try:
if options['nkid'] != 0 and options['nkid'] != '': # pragma: no cover
w.uploadedtonk = options['nkid']
dologging('metrics.log','NK ID {nkid} file {csvfilename}'.format(
nkid=nkid,
csvfilename=w.csvfilename,
))
w.save()
record = create_or_update_syncrecord(w.user, w, nkid=options['nkid'])
except KeyError: