From 215708a415fb58acfee28278570df540603a013d Mon Sep 17 00:00:00 2001 From: Florian Eckert Date: Tue, 8 May 2018 15:42:40 +0200 Subject: [PATCH] net/mwan3: remove logging mwan3track pid is not found Remove unnecessary logging if mwan3track pid is not found Signed-off-by: Florian Eckert --- net/mwan3/files/lib/mwan3/mwan3.sh | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/net/mwan3/files/lib/mwan3/mwan3.sh b/net/mwan3/files/lib/mwan3/mwan3.sh index 1c371ea652..74d5592eb7 100644 --- a/net/mwan3/files/lib/mwan3/mwan3.sh +++ b/net/mwan3/files/lib/mwan3/mwan3.sh @@ -492,11 +492,9 @@ mwan3_track_signal() local pid pid="$(pgrep -f "mwan3track $1 $2")" - if [ "${pid}" != "" ]; then + [ "${pid}" != "" ] && { kill -USR1 "${pid}" - else - $LOG warn "Unable to send signal USR1 to mwan3track on interface $1 with pid ${pid}" - fi + } } mwan3_set_policy() -- 2.30.2