为什么日志会有很多select 1查询?

manman10

[2022-08-13 17:41:49] default.INFO: SQL select 1 [] []
[2022-08-13 17:41:49] default.INFO: SQL select 1 [] []
[2022-08-13 17:41:50] default.INFO: SQL select 1 [] []
[2022-08-13 17:41:50] default.INFO: SQL select 1 [] []
[2022-08-13 17:42:43] default.INFO: SQL select 1 [] []
[2022-08-13 17:42:43] default.INFO: SQL select 1 [] []
[2022-08-13 17:42:43] default.INFO: SQL select 1 [] []
[2022-08-13 17:42:43] default.INFO: SQL select 1 [] []
[2022-08-13 17:42:44] default.INFO: SQL select 1 [] []
[2022-08-13 17:42:44] default.INFO: SQL select 1 [] []
[2022-08-13 17:43:38] default.INFO: SQL select 1 [] []
[2022-08-13 17:43:38] default.INFO: SQL select 1 [] []
[2022-08-13 17:43:38] default.INFO: SQL select 1 [] []
[2022-08-13 17:43:38] default.INFO: SQL select 1 [] []
[2022-08-13 17:43:39] default.INFO: SQL select 1 [] []
[2022-08-13 17:43:39] default.INFO: SQL select 1 [] []
[2022-08-13 17:44:33] default.INFO: SQL select 1 [] []
[2022-08-13 17:44:33] default.INFO: SQL select 1 [] []
[2022-08-13 17:44:33] default.INFO: SQL select 1 [] []
[2022-08-13 17:44:33] default.INFO: SQL select 1 [] []
[2022-08-13 17:44:34] default.INFO: SQL select 1 [] []
[2022-08-13 17:44:34] default.INFO: SQL select 1 [] []

这个不知道怎么产生的 是那个插件查询的吗? 你们看看日志里面有吗

1546 1 0
1个回答

yzh52521

orm 的心跳

  • talentstone 2022-08-13

    想问下用的哪个ORM插件? 这是为了保持连接不断吧。

  • manman10 2022-08-13

    哦哦

  • manman10 2022-08-13

    \vendor\workerman\webman-framework\src\support\bootstrap\LaravelDb.php 这个文件 估计又被日志记录的插件记录起来了

  • manman10 2022-08-13

    @talentstone

年代过于久远,无法发表回答
×
🔝