Make it easier to grok horde log for PHP errors
authorMichael M Slusarz <slusarz@curecanti.org>
Wed, 1 Dec 2010 06:40:07 +0000 (23:40 -0700)
committerMichael M Slusarz <slusarz@curecanti.org>
Wed, 1 Dec 2010 06:40:07 +0000 (23:40 -0700)
framework/Core/lib/Horde.php

index 7a69f06..6dad1e4 100644 (file)
@@ -165,7 +165,7 @@ HTML;
     {
         if (class_exists('Horde_Log')) {
             try {
-                self::logMessage(new ErrorException($errstr, 0, $errno, $errfile, $errline), 'DEBUG');
+                self::logMessage(new ErrorException('PHP ERROR: ' . $errstr, 0, $errno, $errfile, $errline), 'DEBUG');
             } catch (Exception $e) {}
         }
     }