From 12feed15db5729e9f672e25b76a779a917b6105c Mon Sep 17 00:00:00 2001 From: Ermal Date: Thu, 1 Aug 2013 10:26:01 +0000 Subject: Add Zone to the messages logged on syslog from CP to easy troubleshooting --- usr/local/captiveportal/index.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'usr/local/captiveportal') diff --git a/usr/local/captiveportal/index.php b/usr/local/captiveportal/index.php index 63b4280..e859c63 100755 --- a/usr/local/captiveportal/index.php +++ b/usr/local/captiveportal/index.php @@ -62,7 +62,7 @@ $clientip = $_SERVER['REMOTE_ADDR']; if (!$clientip) { /* not good - bail out */ - log_error("Captive portal could not determine client's IP address."); + log_error("Zone: {$cpzone} - Captive portal could not determine client's IP address."); $error_message = "An error occurred. Please check the system logs for more information."; portal_reply_page($redirurl, "error", $errormsg); ob_flush(); @@ -97,7 +97,7 @@ if ($macfilter || $passthrumac) { /* unable to find MAC address - shouldn't happen! - bail out */ captiveportal_logportalauth("unauthenticated","noclientmac",$clientip,"ERROR"); echo "An error occurred. Please check the system logs for more information."; - log_error("Captive portal could not determine client's MAC address. Disable MAC address filtering in captive portal if you do not need this functionality."); + log_error("Zone: {$cpzone} - Captive portal could not determine client's MAC address. Disable MAC address filtering in captive portal if you do not need this functionality."); ob_flush(); return; } -- cgit v1.1