No idea why, but when this exception is an ErrorException, the autoloading is
authorJan Schneider <jan@horde.org>
Tue, 18 Jan 2011 22:55:13 +0000 (23:55 +0100)
committerJan Schneider <jan@horde.org>
Tue, 18 Jan 2011 23:12:55 +0000 (00:12 +0100)
not triggered.

framework/Core/lib/Horde/Core/Log/Logger.php

index ae220ff..5e88909 100644 (file)
@@ -132,7 +132,9 @@ class Horde_Core_Log_Logger extends Horde_Log_Logger
 
         /* If logging an exception, log the backtrace too. */
         if ($event instanceof Exception) {
-            parent::log((string)new Horde_Support_Backtrace($event), $priority);
+            if (class_exists('Horde_Support_Backtrace')) {
+                parent::log((string)new Horde_Support_Backtrace($event), $priority);
+            }
         }
 
         /* Restore original locale and timezone. */