From 1be6437c594ed9302e2ca5b4726bf110e76d5e8f Mon Sep 17 00:00:00 2001 From: Franco Fichtner Date: Fri, 7 Apr 2017 06:33:55 +0200 Subject: [PATCH] gwlb: better log message for monitor routes --- src/etc/inc/gwlb.inc | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/etc/inc/gwlb.inc b/src/etc/inc/gwlb.inc index fa6a41f0c..7e848e6e9 100644 --- a/src/etc/inc/gwlb.inc +++ b/src/etc/inc/gwlb.inc @@ -175,7 +175,7 @@ EOD; /* flush the monitor unconditionally */ if (is_ipaddrv4($gateway['gateway']) && $gateway['monitor'] != $gateway['gateway']) { - log_error("Removing static route for monitor {$gateway['monitor']}"); + log_error("Removing static route for monitor {$gateway['monitor']} via {$gateway['gateway']}"); mwexec("/sbin/route delete -host " . escapeshellarg($gateway['monitor']), true); } @@ -191,7 +191,7 @@ EOD; * not strictly necessary but is a added level of protection. */ if (is_ipaddrv4($gateway['gateway']) && $gateway['monitor'] != $gateway['gateway']) { - log_error("Adding static route for monitor through {$gateway['gateway']}"); + log_error("Adding static route for monitor {$gateway['monitor']} via {$gateway['gateway']}"); mwexec("/sbin/route add -host " . escapeshellarg($gateway['monitor']) . " " . escapeshellarg($gateway['gateway']), true); } @@ -226,7 +226,7 @@ EOD; /* flush the monitor unconditionally */ if (is_ipaddrv6($gateway['gateway']) && $gateway['monitor'] != $gateway['gateway']) { - log_error("Removing static route for monitor {$gateway['monitor']}"); + log_error("Removing static route for monitor {$gateway['monitor']} via {$gateway['gateway']}"); mwexec("/sbin/route delete -host -inet6 " . escapeshellarg($gateway['monitor']), true); } @@ -242,7 +242,7 @@ EOD; * not strictly necessary but is a added level of protection. */ if (is_ipaddrv6($gateway['gateway']) && $gateway['monitor'] != $gateway['gateway']) { - log_error("Adding static route for monitor through {$gateway['gateway']}"); + log_error("Adding static route for monitor {$gateway['monitor']} via {$gateway['gateway']}"); mwexec("/sbin/route add -host -inet6 " . escapeshellarg($gateway['monitor']) . " " . escapeshellarg($gateway['gateway']), true); }