Skip to content

Commit

Permalink
log the whole exception object to allow log targets to work with it
Browse files Browse the repository at this point in the history
fixes yiisoft#6354
made possible by yiisoft#7305
  • Loading branch information
cebe committed May 15, 2015
1 parent dd19955 commit b9916b1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions framework/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ Yii Framework 2 Change Log
- Enh #8070: `yii\console\controllers\MessageController` now sorts created messages, even if there is no new one, while saving to PHP file (klimov-paul)
- Enh #8286: `yii\console\controllers\MessageController` improved allowing extraction of nested translator calls (klimov-paul)
- Enh #8415: `yii\helpers\Html` allows correct rendering of conditional comments containing `!IE` (salaros, klimov-paul)
- Chg #6354: `ErrorHandler::logException()` will now log the whole exception object instead of only its string representation (cebe)


2.0.4 May 10, 2015
Expand Down
2 changes: 1 addition & 1 deletion framework/base/ErrorHandler.php
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,7 @@ public function logException($exception)
} elseif ($exception instanceof \ErrorException) {
$category .= ':' . $exception->getSeverity();
}
Yii::error((string) $exception, $category);
Yii::error($exception, $category);
}

/**
Expand Down

0 comments on commit b9916b1

Please sign in to comment.