Skip to content

Commit

Permalink
* log error
Browse files Browse the repository at this point in the history
  • Loading branch information
ljyf5593 committed Nov 12, 2014
1 parent 4d01cf7 commit 360df44
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions classes/Kohana/Minion/Exception.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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();
Expand Down

0 comments on commit 360df44

Please sign in to comment.