20230606#1

This commit is contained in:
User
2023-06-06 03:25:24 +03:00
parent 1584b2817e
commit e6636c04a9
2 changed files with 3 additions and 3 deletions

View File

@@ -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){

View File

@@ -115,7 +115,7 @@ class Logger implements LoggerInterface {
}
if(!empty((string)$message))$in[] = $message;
if(!empty($context)) $in[] = $context;
self::$logs[$level][] = (count($in)==1) ? $in[0] : $in;;
if(isset($in)) self::$logs[$level][] = (count($in)==1) ? $in[0] : $in;
}
/**