20230606#1
This commit is contained in:
@@ -34,7 +34,7 @@ class App extends Main {
|
||||
public function handler(ServerRequestInterface $request, ResponseInterface $response) : ResponseInterface {
|
||||
try{
|
||||
$this->init($request, $response);
|
||||
$this->syslogger()->log("routes", "", $this->appRoutes);
|
||||
$this->syslogger()->dump("routes", $this->appRoutes);
|
||||
|
||||
foreach ($this->appRoutes as $appRouteKey => $appHandler){
|
||||
|
||||
|
||||
@@ -114,8 +114,8 @@ class Logger implements LoggerInterface {
|
||||
$level = self::RFC_5424_LEVELS[$level];
|
||||
}
|
||||
if(!empty((string)$message))$in[] = $message;
|
||||
if(!empty($context))$in[] = $context;
|
||||
self::$logs[$level][] = (count($in)==1) ? $in[0] : $in;;
|
||||
if(!empty($context)) $in[] = $context;
|
||||
if(isset($in)) self::$logs[$level][] = (count($in)==1) ? $in[0] : $in;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user