[Rt-commit] r11192 - rt/branches/3.8-TESTING/lib/RT/Interface/Web

ruz at bestpractical.com ruz at bestpractical.com
Tue Mar 25 23:51:27 EDT 2008


Author: ruz
Date: Tue Mar 25 23:51:26 2008
New Revision: 11192

Modified:
   rt/branches/3.8-TESTING/lib/RT/Interface/Web/Standalone.pm

Log:
* handle situation when logger is not there

Modified: rt/branches/3.8-TESTING/lib/RT/Interface/Web/Standalone.pm
==============================================================================
--- rt/branches/3.8-TESTING/lib/RT/Interface/Web/Standalone.pm	(original)
+++ rt/branches/3.8-TESTING/lib/RT/Interface/Web/Standalone.pm	Tue Mar 25 23:51:26 2008
@@ -83,7 +83,8 @@
     RT::ConnectToDatabase() unless $self->install_mode;
 
     $self->SUPER::handle_request($cgi);
-    $RT::Logger->crit($@) if ($@);
+    $RT::Logger->crit($@) if $@ && $RT::Logger;
+    warn $@ if $@ && !$RT::Logger;
 
     RT::Interface::Web::Handler->CleanupRequest();
 


More information about the Rt-commit mailing list