I am trying to write some debug statements to the ...
# integrations
a
I am trying to write some debug statements to the execution log of a Map Reduce script. I have
N/log
in both the
define
and
log
in the
function
. However, I am receiving the following error when trying to use log.debug():
TypeError: Cannot find function debug in object [object Object
Has anyone run into this before?
s
Might want to post this in #C29HQS63G, and also include the entire define + function declaration from the script. My best guess is that there could be another variable called log defined somewhere that is taking precedence over the log parameter. You could test that theory by renaming it to
nsLog
or anything else really, to see if the error goes away.
a
Thanks! Joined #C29HQS63G and found the issue. I had an extra module in the define that was causing the issue. Learning every day! Appreciate your time!
👍 1