Flakey use of debug config

Dan Rossi <liveuser-zu2dZaOKXTSc5qR/[email protected]> Sun, 30 Oct 2005 23:22:43 +1100
Newsgroups gmane.comp.php.pear.liveuser
Message-ID <[email protected]>
I updated LiveUser the other day and had to change a few things around 
to make it work,  a public method of addErrorLog got removed. I 
eventually worked out you have to turn on debug for the $admin->log 
object to not be null so these errors wont occur

Fatal error: Call to a member function addChild() on a non-object in

with this $this->admin->log->addChild($logger);

so you have to comment and uncomment that when turning debug on and off.

I now get a log window popping up, when i just want it to log to a file 
like it used to , and i also get this error when loading the login page 
for the first time, as in not a protected area which is redirecting to 
the login

An undefined error occurred or init() was not called

Once i login i get that annoying log window with the error of "unknown 
error" :D whats the go ?