Hi Rick, On Fri, Aug 1, 2008 at 12:11 AM, Rick Welykochy <rick@praxis.com.au> wrote:
More thoughts on error_log: I have had great trouble finding "interesting" errors and warnings in the Koha error log due to the excessive amount of DEBUG messages from Koha and warnings from Perl and the MySQL DBI.
Agreed.
Has consideration been given to a global debug(string) function that can be used to control the printing of debug information? Or even debug(string,debuglevel) ?
Take a look at C4::Debug. This module is a start at exactly that. As we work through the code currently, we make every attempt to conditionalize debug warns based on C4::Debug. One goal as we head toward 3.2 is (I believe) to gain complete control over all debug warns and remove all useless warns. Kind Regards, -- Chris Nighswonger LibLime www.liblime.com chris.nighswonger@liblime.com