bagpipes icon indicating copy to clipboard operation
bagpipes copied to clipboard

debug output that puzzles me

Open osher opened this issue 9 years ago • 2 comments

https://github.com/apigee-127/bagpipes/blob/master/lib/bagpipes.js#L219

perhaps you mean debugContent('output (context[%s]): %j', target, context[target]); ?

osher avatar Nov 09 '16 17:11 osher

I don't think so? What are you seeing?

theganyo avatar Nov 09 '16 18:11 theganyo

 pipes:content output (context[result]): undefined +3ms

sure it's undefined. the output is in another attribute (result), named in fittingDef.output (seen here + the if sttmt that comes after)

I think that in some cases I even got to see the output of the previous pipe... 😛

The names here are rather confusing. I'd rather fittingDef.output to be fittingDef.outputTo, fittingDef.outputsTo, fittingDef.saveAs, fittingDef.savesAs, fittingDef.target, or even fittingDef.memo, to be compatible with that other fitting, but this output thing is all over the place and ambiguous by nature... :face_with_head_bandage:

osher avatar Nov 10 '16 07:11 osher