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