Hi all,
Just posting the info here in case anyone else would like to turn off "2
PERIODIC" Inform logging. It will still log other informs, I.e “2 PERIODIC”,”4
VALUE CHANGE” would be logged.
cwmp.js
Add LOG_INFORMS to var declaration on line 21.
Add LOG_INFORMS = config.get('LOG_INFORMS’); after MAX_CYCLES = 4; line.
Around line 950 somewhere modify the if statement to something like below:
if (rpc.cpeRequest.name === 'Inform') {
if (rpc.cpeRequest.event.length == 1 && rpc.cpeRequest.event[0] == '2
PERIODIC' && !LOG_INFORMS) {
// do nothing
} else {
logger.accessInfo({
sessionContext: sessionContext,
message: 'Inform',
rpc: rpc
});
}
return inform(sessionContext, rpc);
}
config.json
Just add LOG_INFORMS: false,
Thanks,
David White
ISP Support Engineer
Trustpower
T 021 223 6208
E [email protected]<mailto:[email protected]>
Trustpower Limited, Private Bag 12023, Tauranga Mail Centre, Tauranga 3143
------------------------------------------------------------------------------------
The contents of this email and any attachments are confidential and may be
privileged. If you are not the intended recipient, you may not use, copy or
disclose this email or its attachments. Please notify the sender immediately
by e-mail if you have received this e-mail in error and delete both emails from
your system. It is your responsibility to check this email and any attachments
for viruses or other harmful code before opening or sending on. Trustpower
Limited and its subsidiaries (collectively, Trustpower) accepts no
responsibility for any such virus or any effects of a virus on your systems or
data. Trustpower does not endorse anything in this email that is not related
to its official business.
Please think of the environment before printing this email.
------------------------------------------------------------------------------------
_______________________________________________
Users mailing list
[email protected]
http://lists.genieacs.com/mailman/listinfo/users