[horde] Logging issue
Daniel A. Ramaley
daniel.ramaley at DRAKE.EDU
Tue Apr 4 13:14:32 PDT 2006
I have an interesting problem. While trying to solve a different problem
i turned on Horde's logging at a level of PEAR_LOG_DEBUG. I was just
using file logging to /tmp/horde.log. I have since reverted to the
previous configuration, where logging was disabled. However, even with
restarting Apache and clearing out the PHP accelerator's cache there
are still entries being written to the log file. If i delete the file
it is recreated a few seconds later. How do i completely disable the
log?
It is possible that this problem has always existed and i just noticed
it now since i was paying closer attention to the log. The first thing
i did was try to locate all instances of "horde.log" in the Horde
directory:
# cd /var/www/html
# find horde -exec grep -H 'horde\.log' {} \;
horde/config/conf.xml: file">/tmp/horde.log</configstring>
So the only place that file name is referenced is in conf.xml (not
conf.php). How can Horde still be writing to the file?
If it matters any, here is what a typical line from the log looks like:
Apr 04 14:34:20 HORDE [debug] [imp] SQL Query by
DataTree_sql::_buildParentIds(): SELECT datatree_id, datatree_parents
FROM horde_datatree WHERE datatree_name = ? AND group_uid = ? ORDER BY
datatree_id [on line 261 of
"/var/www/html/horde/lib/Horde/DataTree/sql.php"]
I also created a list of the files that generated the log entries, with
a count of how many times each file appears:
12 /var/www/html/horde/imp/compose.php
1 /var/www/html/horde/imp/login.php
2150 /var/www/html/horde/lib/Horde/DataTree/sql.php
7 /var/www/html/horde/lib/Horde.php
421 /var/www/html/horde/lib/Horde/Prefs/sql.php
14 /var/www/html/horde/turba/lib/Driver/ldap.php
7 /var/www/html/horde/turba/lib/Driver/sql.php
That many entries were added to the log after only 45 minutes of
runtime.
------------------------------------------------------------------------
Dan Ramaley Dial Center 118, Drake University
Network Programmer/Analyst 2407 Carpenter Ave
+1 515 271-4540 Des Moines IA 50311 USA
More information about the horde
mailing list