mwan3: change log message on already added route
authorFlorian Eckert <fe@dev.tdt.de>
Wed, 14 Sep 2022 12:46:58 +0000 (14:46 +0200)
committerFlorian Eckert <fe@dev.tdt.de>
Mon, 17 Oct 2022 13:17:07 +0000 (15:17 +0200)
Only show message on already set route, if debugging is enabled.

Signed-off-by: Florian Eckert <fe@dev.tdt.de>
net/mwan3/files/lib/mwan3/mwan3.sh

index f48a145cb62548d182edc3c2241f50b3e478be7c..1bfb767e861fbbea4f1879b2ec160683944802e5 100644 (file)
@@ -483,7 +483,7 @@ mwan3_create_iface_route()
                        # if 'connected' was called after 'ifup'
                        [ -n "$tbl" ] && [ -z "${tbl##*$route_line$'\n'*}" ] && continue
                        $IP route add table $id $route_line ||
-                               LOG warn "failed to add $route_line to table $id"
+                               LOG debug "Route '$route_line' already added to table $id"
                fi
 
        done