This commit is contained in:
2023-08-02 12:37:57 +08:00
parent c541ecb96d
commit dfa3ab413b
+5 -1
View File
@@ -169,7 +169,11 @@ class Logger implements LoggerInterface
public function log($level, $message, array $context = []): void public function log($level, $message, array $context = []): void
{ {
if (!in_array($level, $this->levels)) return; if (!in_array($level, $this->levels)) return;
$_string = "[" . now() . ']: ' . $message . PHP_EOL . $this->_string($context);
var_dump($context);
$context = $this->_string($context);
var_dump($context);
$_string = "[" . now() . ']: ' . $message . PHP_EOL . $context;
if (str_contains($_string, 'Event::rshutdown')) { if (str_contains($_string, 'Event::rshutdown')) {
return; return;
} }