Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
deepziyu committed Jun 29, 2018
1 parent f2dc8aa commit 393b802
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions log/FileTarget.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
use Yii;
use yii\helpers\ArrayHelper;
use yii\helpers\Json;
use yii\helpers\VarDumper;
use yii\log\FileTarget as YiiFileTarget;

/**
Expand Down Expand Up @@ -36,8 +37,8 @@ protected function getContextMessage()
$result = [];
foreach ($context as $key => $value) {
// some function is not allow in swoole
//$result[] = "\${$key} = " . VarDumper::dumpAsString($value);
$result[] = "\${$key} = " . Json::encode($value,JSON_UNESCAPED_UNICODE);
$result[] = "\${$key} = " . VarDumper::dumpAsString($value);
//$result[] = "\${$key} = " . Json::encode($value,JSON_UNESCAPED_UNICODE);
}
return implode("\n", $result);
}
Expand Down

0 comments on commit 393b802

Please sign in to comment.