additional logging
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
BIN
rowers/tests/testdata/testdata.tcx.gz
vendored
BIN
rowers/tests/testdata/testdata.tcx.gz
vendored
Binary file not shown.
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user