nsDebugOutputAll OBJECT-TYPE
SYNTAX TruthValue
MAX-ACCESS read-write
STATUS current
DESCRIPTION
"Whether the agent is configured to display all debugging output
rather than filtering on individual debug tokens. Nothing will
be generated unless nsDebugEnabled is also true(1)"
Is this patch such that all debug tokens are only enabled if nsDebugEnabled has been set?
Last edit: Bart Van Assche 2018-06-22
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
The code implements the simple logic;
nsDebugEnabled==false & nsDebugOutputAll ==true => NO logging
nsDebugEnabled==true & nsDebugOutputAll==true => Log ALL debug messages
nsDebugEnabled==true & nsDebugOutputAll ==false => Logging tokens set messages
But if you interpretate the DESCRIPTION that it's dependent on the order of setting nsDebugEnabled and nsDebugOutputAll, then it's not. e.g
This order will then not turn on logging
1. Unset nsDebugEnabled
2. Set nsDebugOutputAll
3. Set nsDebugEnabled
While this will turn on logging
1. Set nsDebugEnabled
2. Set nsDebugOutputAll
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
From NET-SNMP-AGENT-MIB.txt:
Is this patch such that all debug tokens are only enabled if nsDebugEnabled has been set?
Last edit: Bart Van Assche 2018-06-22
The code implements the simple logic;
nsDebugEnabled==false & nsDebugOutputAll ==true => NO logging
nsDebugEnabled==true & nsDebugOutputAll==true => Log ALL debug messages
nsDebugEnabled==true & nsDebugOutputAll ==false => Logging tokens set messages
But if you interpretate the DESCRIPTION that it's dependent on the order of setting nsDebugEnabled and nsDebugOutputAll, then it's not. e.g
This order will then not turn on logging
1. Unset nsDebugEnabled
2. Set nsDebugOutputAll
3. Set nsDebugEnabled
While this will turn on logging
1. Set nsDebugEnabled
2. Set nsDebugOutputAll