我在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发布于 2018-01-18 12:41:42
您需要更改传递给new ConnectionPool的poolConfig,使其包含密钥log: false
另请参阅documentation https://github.com/tediousjs/tedious-connection-pool中出现log: true的示例。
https://stackoverflow.com/questions/48311736
复制相似问题