summaryrefslogtreecommitdiffstats
path: root/usr/local/captiveportal
diff options
context:
space:
mode:
authorErmal <eri@pfsense.org>2013-08-01 10:26:01 +0000
committerErmal <eri@pfsense.org>2013-08-01 10:26:01 +0000
commit12feed15db5729e9f672e25b76a779a917b6105c (patch)
treebb162a9aa3b3b0479e1a52770f79512e7349c042 /usr/local/captiveportal
parentebea8b08ebe8f6b737b13c0944e7c0739b9a358d (diff)
downloadpfsense-12feed15db5729e9f672e25b76a779a917b6105c.zip
pfsense-12feed15db5729e9f672e25b76a779a917b6105c.tar.gz
Add Zone to the messages logged on syslog from CP to easy troubleshooting
Diffstat (limited to 'usr/local/captiveportal')
-rwxr-xr-xusr/local/captiveportal/index.php4
1 files changed, 2 insertions, 2 deletions
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;
}
OpenPOWER on IntegriCloud