summaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
Diffstat (limited to 'etc')
-rw-r--r--etc/inc/pfsense-utils.inc6
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
+?>
OpenPOWER on IntegriCloud