Skip to content

Commit

Permalink
Merge pull request #106 from ljyf5593/3.3/develop
Browse files Browse the repository at this point in the history
Log errors during task execution

Closes #105
  • Loading branch information
acoulton committed Nov 12, 2014
2 parents 4d01cf7 + 360df44 commit 2415626
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 2415626

Please sign in to comment.