diff options
author | Florian Eckert <fe@dev.tdt.de> | 2018-05-11 08:35:43 +0200 |
---|---|---|
committer | Florian Eckert <fe@dev.tdt.de> | 2018-05-11 08:46:40 +0200 |
commit | 21c42901e13ae38f7fbc4e0c51b24b45332efc11 (patch) | |
tree | 2e870ed5afbd3847efeeabc81f20c8b21efee24c | |
parent | 3b33e0179180beaffa10a2cfaa08621e18ae0113 (diff) |
net/mwan3: update logging output
Unify logging output for tracking methode ping.
Signed-off-by: Florian Eckert <fe@dev.tdt.de>
-rwxr-xr-x | net/mwan3/files/usr/sbin/mwan3track | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/net/mwan3/files/usr/sbin/mwan3track b/net/mwan3/files/usr/sbin/mwan3track index f445b146e..9bc17ed8d 100755 --- a/net/mwan3/files/usr/sbin/mwan3track +++ b/net/mwan3/files/usr/sbin/mwan3track @@ -162,7 +162,7 @@ main() { echo "$loss" > /var/run/mwan3track/$1/LOSS_${track_ip} if [ $score -gt $up ]; then - $LOG info "Failed: Latency=$latency ms Loss=$loss% for target \"$track_ip\" on interface $1 ($2)" + $LOG info "Check (${track_method}: latency=${latency}ms loss=${loss}%) failed for target \"$track_ip\" on interface $1 ($2)" fi elif [ "$loss" -le "$recovery_loss" -a "$latency" -le "$recovery_latency" ]; then let host_up_count++ @@ -171,7 +171,7 @@ main() { echo "$loss" > /var/run/mwan3track/$1/LOSS_${track_ip} if [ $score -le $up ]; then - $LOG info "Success: Latency=$latency ms Loss=$loss% for target \"$track_ip\" on interface $1 ($2)" + $LOG info "Check (${track_method}: latency=${latency}ms loss=${loss}%) success for target \"$track_ip\" on interface $1 ($2)" fi else echo "skipped" > /var/run/mwan3track/$1/TRACK_${track_ip} |