最佳答案
您可以在配置socket.io(版本 < .1.0)时设置日志级别。
将其设置为 0 只会在出现错误时在控制台中输出。您还可以使用自己的记录器并将其禁用。
log level defaults to 3
The amount of detail that the server should output to the logger.
0 - error
1 - warn
2 - info
3 - debug
Socket.io 1.0+
请注意,记录器确认已更改,请参阅 log differences现在它正在使用 debug module .
关于socket.io - 如何禁用socket.io 1.0调试?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/23588049/