mwan3: change log message on already added route

Only show message on already set route, if debugging is enabled.

Signed-off-by: Florian Eckert <fe@dev.tdt.de>
This commit is contained in:
Florian Eckert 2022-09-14 14:46:58 +02:00
parent cb6a9868dc
commit a6606bed17

View 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