summaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authorErmal <eri@pfsense.org>2012-11-20 15:55:14 +0000
committerErmal <eri@pfsense.org>2012-11-20 15:55:14 +0000
commit6a45171d7f407e7b823d9fd7153bd75d44ef6a1d (patch)
tree5af80ab95bb52d38e56815cda70fad62c4d34d7a /etc
parent05e825e75be83f80833860882efd26e91b2c8cb6 (diff)
downloadpfsense-6a45171d7f407e7b823d9fd7153bd75d44ef6a1d.zip
pfsense-6a45171d7f407e7b823d9fd7153bd75d44ef6a1d.tar.gz
Its useless to write the debug file always. Put it under g['debug'] belt
Diffstat (limited to 'etc')
-rw-r--r--etc/inc/dyndns.class6
1 files changed, 5 insertions, 1 deletions
diff --git a/etc/inc/dyndns.class b/etc/inc/dyndns.class
index 843a03c..caf8770 100644
--- a/etc/inc/dyndns.class
+++ b/etc/inc/dyndns.class
@@ -1085,7 +1085,11 @@
* - This function is only called when a unknown response
* - status is returned from a DynDNS service provider.
*/
- function _debug ($data) {
+ function _debug($data) {
+ global $g;
+
+ if (!$g['debug'])
+ return;
$string = '\n'.date('m-d-y h:i:s').' - ('.$this->_debugID.') - ['.$this->_dnsService.'] - '.$data.'\n';
conf_mount_rw();
$file = fopen($this->_debugFile, 'a');
OpenPOWER on IntegriCloud