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

@ -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) {