From 360df44b20c984d3b582e4c8fb3b701dfe35bf36 Mon Sep 17 00:00:00 2001 From: liujie Date: Wed, 12 Nov 2014 14:30:48 +0800 Subject: [PATCH] * log error --- classes/Kohana/Minion/Exception.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/classes/Kohana/Minion/Exception.php b/classes/Kohana/Minion/Exception.php index 735dac4..887fbc7 100644 --- a/classes/Kohana/Minion/Exception.php +++ b/classes/Kohana/Minion/Exception.php @@ -15,8 +15,6 @@ class Kohana_Minion_Exception extends Kohana_Exception { * * Should this display a stack trace? It's useful. * - * Should this still log? Maybe not as useful since we'll see the error on the screen. - * * @uses Kohana_Exception::text * @param Exception $e * @return boolean @@ -25,6 +23,9 @@ public static function handler(Exception $e) { try { + // Log the exception + Kohana_Exception::log($e); + if ($e instanceof Minion_Exception) { echo $e->format_for_cli();