Commit 0edbd3e1 authored by Adam Wujek's avatar Adam Wujek 💬

Kconfig: change default log level of snmpd

Make default log level as "Warning". By this don't print that SNMP packet was
received.
Signed-off-by: Adam Wujek's avatarAdam Wujek <adam.wujek@cern.ch>
parent 815e1295
...@@ -222,15 +222,16 @@ config WRS_LOG_PTP ...@@ -222,15 +222,16 @@ config WRS_LOG_PTP
config WRS_LOG_SNMPD config WRS_LOG_SNMPD
string "Logging directions for the SNMP daemon" string "Logging directions for the SNMP daemon"
default "sd" default "Swd"
help help
The string can be a pathname (e.g. /dev/kmsg) or a valid snmpd log The string can be a pathname (e.g. /dev/kmsg) or a valid snmpd log
option (without -L). "sd" or "s daemon" will forward messages to option (without -L). "Swd" will forward messages with priority at
syslog with daemon as facility. To set level (i.e. 5) use least warning to syslog with daemon as facility. To set level (i.e. 5)
"S 5 daemon". For details please check "man snmpcmd". An empty use "S 5 daemon". For details please check "man snmpcmd". An empty
strings is used to represent no logging (like /dev/null). Please strings is used to represent no logging (like /dev/null). Please
note that unknown facility names will generate a runtime error on the note that unknown facility names will generate a runtime error on the
switch. switch. NOTE: It looks like Notice is not a default logging priority
as writen in manual.
config WRS_LOG_MONIT config WRS_LOG_MONIT
string "Logging directions for the monit" string "Logging directions for the monit"
......
...@@ -28,7 +28,7 @@ CONFIG_REMOTE_SYSLOG_UDP=y ...@@ -28,7 +28,7 @@ CONFIG_REMOTE_SYSLOG_UDP=y
CONFIG_WRS_LOG_HAL="daemon.info" CONFIG_WRS_LOG_HAL="daemon.info"
CONFIG_WRS_LOG_RTU="daemon.info" CONFIG_WRS_LOG_RTU="daemon.info"
CONFIG_WRS_LOG_PTP="daemon.info" CONFIG_WRS_LOG_PTP="daemon.info"
CONFIG_WRS_LOG_SNMPD="sd" CONFIG_WRS_LOG_SNMPD="Swd"
CONFIG_WRS_LOG_MONIT="syslog" CONFIG_WRS_LOG_MONIT="syslog"
CONFIG_WRS_LOG_WRSWATCHDOG="daemon.info" CONFIG_WRS_LOG_WRSWATCHDOG="daemon.info"
# CONFIG_KEEP_ROOTFS is not set # CONFIG_KEEP_ROOTFS is not set
......
...@@ -563,13 +563,13 @@ value is changed by the web interface, proper action is taken. ...@@ -563,13 +563,13 @@ value is changed by the web interface, proper action is taken.
Value can be a pathname, to select logging to file (and Value can be a pathname, to select logging to file (and
@t{/dev/kmsg} is a possible ``file'' target) or a valid snmpd log @t{/dev/kmsg} is a possible ``file'' target) or a valid snmpd log
option (without -L). option (without -L).
Allowed strings are in format ``@t{s} @i{facility}'' (e.g. Allowed strings are in the format ``@t{S} @i{level} @i{facility}'' (e.g.
``@t{s daemon}'') and ``@t{s} @i{level} @i{facility}'' (e.g. ``@t{S 2 daemon}''). For example, ``@t{s daemon}'' will forward
``@t{s 2 daemon}''). For example, ``@t{sd}'' or ``@t{s daemon}'' will forward
messages to syslog with daemon as facility. To set level (i.e. 5) use messages to syslog with daemon as facility. To set level (i.e. 5) use
``@t{S 5 daemon}''. For details please check ``man snmpcmd''. An empty ``@t{S 5 daemon}''. For details please check ``man snmpcmd''. An empty
strings selects no logging at all. Please note that unknown facility strings selects no logging at all. Please note that unknown facility
names will generate a runtime error on the switch. names will generate a runtime error on the switch. NOTE: It looks
like @t{Notice} is not a default logging priority as writen in manual.
@item CONFIG_WRS_LOG_MONIT @item CONFIG_WRS_LOG_MONIT
The string can be a pathname (e.g. @t{/dev/kmsg}) or a @t{syslog} The string can be a pathname (e.g. @t{/dev/kmsg}) or a @t{syslog}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment