From 8593443ea25193a0bdb63e3260242ca892af679b Mon Sep 17 00:00:00 2001 From: Chris Stanaway <22823019+ccs018@users.noreply.github.com> Date: Fri, 15 Jun 2018 19:37:47 -0500 Subject: [PATCH] Update agent.js Fix incorrect reference to logger. --- lib/agent.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;