[dev] [patch] logging level to high

Daniel Eckl daniel.eckl at gmx.de
Thu Dec 4 03:22:17 PST 2003


Hi list!

In horde/lib/Prefs/sql.php line 266 there's a logging entry that has a loglevel
set too high. It should not log in INFO level IMHO, only in DEBUG level.

If you agree with me, there is a patch as attachement.

Thanks and keep up the wonderful work!

Daniel
-------------- next part --------------
--- lib/Prefs/sql.php.orig	Tue Dec  2 15:20:04 2003
+++ lib/Prefs/sql.php	Tue Dec  2 15:22:41 2003
@@ -263,7 +263,7 @@
         $query .= ' AND (pref_scope = ' . $this->_db->quote($this->_scope);
         $query .= " OR pref_scope = 'horde') ORDER BY pref_scope";
 
-        Horde::logMessage(sprintf('SQL Query by Prefs_sql::retrieve(): %s', $query), __FILE__, __LINE__, PEAR_LOG_INFO);
+        Horde::logMessage(sprintf('SQL Query by Prefs_sql::retrieve(): %s', $query), __FILE__, __LINE__, PEAR_LOG_DEBUG);
 
         /* Execute the query. */
         $result = $this->_db->query($query);


More information about the dev mailing list