瀏覽代碼

Update Log.php

Visman 2 年之前
父節點
當前提交
0d4ba6d929
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      app/Core/Log.php

+ 2 - 2
app/Core/Log.php

@@ -21,7 +21,7 @@ use Throwable;
 
 class Log implements LoggerInterface
 {
-    const JSON_OPTIONS = \JSON_UNESCAPED_SLASHES | \JSON_UNESCAPED_UNICODE | \JSON_THROW_ON_ERROR;
+    const JSON_OPTIONS = \JSON_UNESCAPED_SLASHES | \JSON_UNESCAPED_UNICODE | \JSON_INVALID_UTF8_SUBSTITUTE | \JSON_THROW_ON_ERROR;
 
     /**
      * Контейнер
@@ -96,7 +96,7 @@ class Log implements LoggerInterface
         $line    = $this->generateLine(
             $level,
             $this->c->Secury->replInvalidChars($message),
-            $this->c->Secury->replInvalidChars($context)
+            $context
         );
 
         if (! \is_resource($this->resource)) {