From c0e8e317aced320d35a5eac6c1ada1cf0f269e54 Mon Sep 17 00:00:00 2001 From: "as2252258@163.com" Date: Mon, 6 Sep 2021 02:03:18 +0800 Subject: [PATCH] 111 --- src/Mysql/PDO.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Mysql/PDO.php b/src/Mysql/PDO.php index 34b4c98..d8b74e8 100644 --- a/src/Mysql/PDO.php +++ b/src/Mysql/PDO.php @@ -4,6 +4,7 @@ namespace Database\Mysql; use Exception; use Http\Context\Context; +use Kiri\Abstracts\Logger; use Kiri\Events\EventProvider; use Kiri\Kiri; use Kiri\Pool\StopHeartbeatCheck; @@ -79,7 +80,7 @@ class PDO implements StopHeartbeatCheck $this->_timer = Timer::tick(1000, function () { try { if (env('state','start') == 'exit') { - echo 'timer end.' . PHP_EOL; + Kiri::getDi()->get(Logger::class)->critical('timer end'); $this->stopHeartbeatCheck(); } if (time() - $this->_last > 10 * 60) {