qqq
This commit is contained in:
+1
-1
@@ -922,7 +922,7 @@ if (!function_exists('throwable')) {
|
|||||||
$file = $value['file'];
|
$file = $value['file'];
|
||||||
$line = $value['line'];
|
$line = $value['line'];
|
||||||
|
|
||||||
$message .= $value['file'] . ' -> ' . (isset($value['class']) ? $value['class'] . '::' : '') . ($value['function'] ?? 'Closure') . "(" . implode(",", $value['args'] ?? []) . ")" . ' line ' . $line . PHP_EOL;
|
$message .= $value['file'] . ' -> ' . (isset($value['class']) ? $value['class'] . '::' : '') . ($value['function'] ?? 'Closure') . "(" . var_export($value['args'] ?? [], true) . ")" . ' line ' . $line . PHP_EOL;
|
||||||
}
|
}
|
||||||
return $message;
|
return $message;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -169,9 +169,6 @@ 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;
|
||||||
|
|
||||||
|
|
||||||
var_dump($message, $context);
|
|
||||||
$_string = "[" . now() . ']: ' . $message . PHP_EOL . $this->_string($context);
|
$_string = "[" . now() . ']: ' . $message . PHP_EOL . $this->_string($context);
|
||||||
if (str_contains($_string, 'Event::rshutdown')) {
|
if (str_contains($_string, 'Event::rshutdown')) {
|
||||||
return;
|
return;
|
||||||
|
|||||||
Reference in New Issue
Block a user