Problem with debug logging

Tried to add some logging to debug what is going on and when I restart
apache it fails and the error_log shows:
[Wed Nov 02 11:10:19 2005] [error] Can’t call method “debug” on an
undefined val
ue at /opt/rt3/lib/RT/User.pm line 838.\nCompilation failed in require
at /opt/r
t3/lib/RT/Record.pm line 69.\nBEGIN failed–compilation aborted at
/opt/rt3/lib/
RT/Record.pm line 69.\nCompilation failed in require at
/opt/rt3/lib/RT/CurrentU
ser.pm line 73.\nBEGIN failed–compilation aborted at
/opt/rt3/lib/RT/CurrentUse
r.pm line 73.\nCompilation failed in require at /opt/rt3/lib/RT.pm line
49.\nBEG
IN failed–compilation aborted at /opt/rt3/lib/RT.pm line
49.\nCompilation faile
d in require at /opt/rt3/bin/webmux.pl line 66.\nBEGIN
failed–compilation abort
ed at /opt/rt3/bin/webmux.pl line 66.\nCompilation failed in require at
(eval 2)
line 1.\n
[Wed Nov 02 11:10:19 2005] [error] Can’t load Perl file:
/opt/rt3/bin/webmux.pl
for server elmer.rmtc.fedex.com:0, exiting…

I tried to add:
$RT::Logger->debug(“Checking for User_Overlay, Local, etc\n”);
In User.pm…

I’m running rt 3.4.4 on Fedora Core 4…

Thanks.
Don Beethe
dmbeethe@fedex.com

Perhaps your changes include an error. Check your code with:

perl -I/opt/rt3/local/lib -I/opt/rt3/lib /opt/rt3/lib/RT/User_Overlay.pm

-Todd

Tried to add some logging to debug what is going on and when I restart
apache it fails and the error_log shows:
[snip]

I tried to add:
$RT::Logger->debug(“Checking for User_Overlay, Local, etc\n”);
In User.pm…
You can’t use $RT::Logger when it’s not defined. When RT starts and
loads modules logger object is not initialized yet.

I’m running rt 3.4.4 on Fedora Core 4…

Thanks.
Don Beethe
dmbeethe@fedex.com


The rt-users Archives

Be sure to check out the RT Wiki at http://wiki.bestpractical.com

Buy your copy of our new book, RT Essentials, today!

Download a free sample chapter from http://rtbook.bestpractical.com

Best regards, Ruslan.