mirror of
https://github.com/kernelkit/infix.git
synced 2026-08-02 13:53:01 +02:00
board/common: reduce nginx and rouset default log level
Fixes #1349 Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
This commit is contained in:
@@ -1,3 +1,3 @@
|
||||
service name:rousette notify:none log <pid/confd> env:/etc/default/confd \
|
||||
service name:rousette notify:none log:console <pid/confd> env:/etc/default/confd \
|
||||
[12345] rousette --syslog -t $CONFD_TIMEOUT \
|
||||
-- RESTCONF server
|
||||
|
||||
@@ -19,6 +19,14 @@ http {
|
||||
|
||||
include /etc/nginx/enabled/*.conf;
|
||||
|
||||
access_log syslog:server=unix:/dev/log,nohostname,facility=local7,severity=info;
|
||||
error_log syslog:server=unix:/dev/log,nohostname,facility=local7 info;
|
||||
# Skip 2xx and 3xx
|
||||
# Skip 400 (e.g., rrousette syntax errors)
|
||||
map $status $loggable {
|
||||
~^[23] 0;
|
||||
400 0;
|
||||
default 1;
|
||||
}
|
||||
|
||||
access_log syslog:server=unix:/dev/log,nohostname,facility=local7,severity=warn combined if=$loggable;
|
||||
error_log syslog:server=unix:/dev/log,nohostname,facility=local7 warn;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user