【问题标题】:How to stop tedious connection pool logging如何停止繁琐的连接池日志记录
【发布时间】:2018-01-17 23:38:16
【问题描述】:

我在我的 Node js 应用程序中使用了繁琐的连接池。一切正常,但我在控制台中看到不必要的日志。 如何摆脱这些日志消息。我只想在任何失败时查看日志。

日志:

Tedious-Connection-Pool: filling pool with 2
Tedious-Connection-Pool: creating connection: 1
Tedious-Connection-Pool: creating connection: 2
Tedious-Connection-Pool: filling pool with 2

【问题讨论】:

    标签: node.js tedious


    【解决方案1】:

    您需要将传递给new ConnectionPoolpoolConfig 更改为包含密钥log: false

    另请参阅文档https://github.com/tediousjs/tedious-connection-pool 中出现log: true 的示例。

    【讨论】:

      猜你喜欢
      • 2012-08-02
      • 2013-11-26
      • 2011-02-27
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2020-02-21
      • 1970-01-01
      • 2020-04-23
      相关资源
      最近更新 更多