diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2005-08-14 18:10:37 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2005-08-14 18:10:37 +0000 |
commit | a7a594d1a11036662d9afc173a13c74a9b735411 (patch) | |
tree | 3369250d2febc6a6153f196020819e590bc6a3f5 | |
parent | 8600af6f3053b09e80049d22634fd3eebffdbf0d (diff) | |
download | pfsense-a7a594d1a11036662d9afc173a13c74a9b735411.zip pfsense-a7a594d1a11036662d9afc173a13c74a9b735411.tar.gz |
Enhance log_error()
Submitted-by: databeestje
-rw-r--r-- | etc/inc/pfsense-utils.inc | 18 |
1 files changed, 10 insertions, 8 deletions
diff --git a/etc/inc/pfsense-utils.inc b/etc/inc/pfsense-utils.inc index f0d28a8..d61c517 100644 --- a/etc/inc/pfsense-utils.inc +++ b/etc/inc/pfsense-utils.inc @@ -56,16 +56,18 @@ function get_dns_servers() { return $dns_servers; } + /****f* pfsense-utils/log_error - * NAME - * log_error - Sends a string to syslog. - * INPUTS - * $error - string containing the syslog message. - * RESULT - * null - ******/ +* NAME +* log_error - Sends a string to syslog. +* INPUTS +* $error - string containing the syslog message. +* RESULT +* null +******/ function log_error($error) { - syslog(LOG_WARNING, $error); + $page = $_SERVER['PHP_SELF']; + syslog(LOG_WARNING, "$page: $error"); return; } |