如何停止繁琐的连接池日志记录
How to stop tedious connection pool logging
我在我的 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
您需要更改传递给 new ConnectionPool
的 poolConfig
,以便它包含密钥 log: false
另请参阅文档 https://github.com/tediousjs/tedious-connection-pool 中的示例,其中出现 log: true
。
我在我的 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
您需要更改传递给 new ConnectionPool
的 poolConfig
,以便它包含密钥 log: false
另请参阅文档 https://github.com/tediousjs/tedious-connection-pool 中的示例,其中出现 log: true
。