This commit is contained in:
2023-08-02 14:44:22 +08:00
parent a99c50a116
commit f3e90725cc
+4 -1
View File
@@ -169,7 +169,10 @@ class Logger implements LoggerInterface
public function log($level, $message, array $context = []): void
{
if (!in_array($level, $this->levels)) return;
$_string = "[" . now() . ']: ' . $message . PHP_EOL . $this->_string($context);
$_string = "[" . now() . ']: ' . $message;
if (!empty($context)) {
$_string .= PHP_EOL . $this->_string($context);
}
if (str_contains($_string, 'Event::rshutdown')) {
return;
}