Add debug logging for Horde_Prefs::setValue()
authorMichael M Slusarz <slusarz@curecanti.org>
Fri, 5 Feb 2010 21:24:51 +0000 (14:24 -0700)
committerMichael M Slusarz <slusarz@curecanti.org>
Fri, 5 Feb 2010 21:24:51 +0000 (14:24 -0700)
framework/Prefs/lib/Horde/Prefs.php

index 18f38d8..0b14093 100644 (file)
@@ -316,6 +316,9 @@ class Horde_Prefs
         }
 
         $result = $this->_setValue($pref, $val, true, $convert);
+
+        Horde::logMessage(__CLASS__ . ': Storing preference value (' . $pref . ')', __FILE__, __LINE__, PEAR_LOG_DEBUG);
+
         if ($result && $this->isDirty($pref)) {
             $scope = $this->_getPreferenceScope($pref);
             $this->_cacheUpdate($scope, array($pref));