This commit is contained in:
2025-12-31 00:19:28 +08:00
parent 59042c0110
commit eeb925b5b9
5 changed files with 139 additions and 125 deletions
+19 -7
View File
@@ -4,6 +4,8 @@
namespace Kiri\Server\Abstracts;
use Kiri\Error\StdoutLogger;
/**
* Class Server
* @package Server\Abstracts
@@ -11,12 +13,22 @@ namespace Kiri\Server\Abstracts;
abstract class Server
{
/**
* Server constructor.
* @throws
*/
public function __construct()
{
}
/**
* Server constructor.
* @throws
*/
public function __construct()
{
}
/**
* @return StdoutLogger
*/
protected function getLogger(): StdoutLogger
{
return \Kiri::getLogger();
}
}
+1 -1
View File
@@ -46,7 +46,7 @@ trait TraitServer
Kiri::getLogger()->alert('Pid ' . getmypid() . ' get signo ' . $no);
$this->shutdown();
} catch (\Throwable $exception) {
error($exception);
\Kiri::getLogger()->json_log($exception);
}
}