diff --git a/lib/agent.js b/lib/agent.js index 3074bb3..121e57b 100644 --- a/lib/agent.js +++ b/lib/agent.js @@ -133,7 +133,7 @@ Agent.prototype._varbind_set_single = value: data.noSuchInstance }); } else if (typeof (vb) === 'number') { if (req.pdu.op != PDU.SetRequest && vb != PDU.genErr) { - this.log.warn({ snmpmsg: req }, + this._log.warn({ snmpmsg: req }, 'provider attempted to set prohibited ' + 'error code ' + vb + ' for varbind ' + idx); vb = PDU.genErr;