Skip to content
Snippets Groups Projects
Unverified Commit 883c32f2 authored by Matthias Schiffer's avatar Matthias Schiffer
Browse files

gluon-status-page: suppress "broken pipe" syslog message

Some HTTP endpoints were writing annoying "broken pipe" messages to stderr.
parent 5c728073
No related branches found
Tags
No related merge requests found
......@@ -8,6 +8,6 @@ badrequest() {
echo 'Access-Control-Allow-Origin: *'
batctl if | cut -d: -f1 | grep -qxF "$QUERY_STRING" || badrequest
( batctl if | cut -d: -f1 | grep -qxF "$QUERY_STRING" ) 2>/dev/null || badrequest
exec /usr/bin/gluon-neighbour-info -s neighbour -i "$QUERY_STRING" -d ff02::2:1001 -p 1001 -r nodeinfo
......@@ -8,7 +8,7 @@ badrequest() {
echo 'Access-Control-Allow-Origin: *'
batctl if | cut -d: -f1 | grep -qxF "$QUERY_STRING" || badrequest
( batctl if | cut -d: -f1 | grep -qxF "$QUERY_STRING" ) 2>/dev/null || badrequest
CMD="exec /lib/gluon/status-page/providers/stations '$QUERY_STRING'"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment