Dump any exceptions into the standard Kohana log as well as the task

log for maximum exposure.
This commit is contained in:
Bharat Mediratta
2009-08-04 20:34:46 -07:00
parent 1e72860566
commit a03b9273b2
+1
View File
@@ -84,6 +84,7 @@ class task_Core {
}
$task->save();
} catch (Exception $e) {
Kohana::log("error", $e->__toString());
$task->log($e->__toString());
$task->state = "error";
$task->done = true;