diff options
author | Seth Mos <seth.mos@xs4all.nl> | 2009-07-13 14:16:40 +0200 |
---|---|---|
committer | Seth Mos <seth.mos@xs4all.nl> | 2009-07-13 14:16:40 +0200 |
commit | a5f91ef49bda0f1ae244289dd433a5c2b307db14 (patch) | |
tree | 41459ab7a326810bf10d23f1d4bd7d3240c4b710 | |
parent | 2968431bd292b078be4d964e33c0a82c3dd6f5b1 (diff) | |
download | pfsense-a5f91ef49bda0f1ae244289dd433a5c2b307db14.zip pfsense-a5f91ef49bda0f1ae244289dd433a5c2b307db14.tar.gz |
Silence dnscache message into a debug check
-rw-r--r-- | etc/inc/pfsense-utils.inc | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/etc/inc/pfsense-utils.inc b/etc/inc/pfsense-utils.inc index 2707371..42781d8 100644 --- a/etc/inc/pfsense-utils.inc +++ b/etc/inc/pfsense-utils.inc @@ -1631,7 +1631,9 @@ function compare_hostname_to_dnscache($hostname) { } if(trim($oldcontents) != trim($contents)) { - log_error("DNSCACHE: Found old IP {$oldcontents} and new IP {$contents}"); + if($g['debug']) { + log_error("DNSCACHE: Found old IP {$oldcontents} and new IP {$contents}"); + } return ($oldcontents); } else { return false; @@ -1709,4 +1711,4 @@ function get_freebsd_version() { return $version; } -?>
\ No newline at end of file +?> |