Fixes #14341: Fixed regression in error handling introduced by fixing #14264

This commit is contained in:
Alexander Makarov
2017-06-24 02:28:54 +03:00
committed by GitHub
parent 165421dfc7
commit d1d60e2d19
2 changed files with 2 additions and 1 deletions

View File

@ -16,6 +16,7 @@ Yii Framework 2 Change Log
- Enh #14081: Added `yii\caching\CacheInterface` to make custom cache extensions adoption easier (silverfire)
- Chg #14286: Used primary inputmask package name instead of an alias (samdark)
- Enh #14298: The default response formatter configs defined by `yii\web\Response::defaultFormatters()` now use the array syntax (brandonkelly)
- Bug #14341: Fixed regression in error handling introduced by fixing #14264 (samdark)
2.0.12 June 05, 2017
--------------------

View File

@ -278,7 +278,7 @@ class Logger extends Component
list($token, $level, $category, $timestamp, $traces) = $log;
$memory = isset($log[5]) ? $log[5] : 0;
$log[6] = $i;
$hash = md5(serialize($token));
$hash = md5(json_encode($token));
if ($level == self::LEVEL_PROFILE_BEGIN) {
$stack[$hash] = $log;
} elseif ($level == self::LEVEL_PROFILE_END) {