【发布时间】:2013-06-25 20:51:41
【问题描述】:
我在 heroku 上使用 socket.io。为此,我必须使用xhr-polling on heroku。然而,这使得创建了大量的日志。
2013-04-25T20:15:49.255467+00:00 heroku[router]: at=info method=GET path=/socket.io/1/xhr-polling/cOO67jH_mH2cIjDt5OWX?t=1372192165157 host=xyz.com fwd="123.12.12.123" dyno=web.1 connect=1ms service=2044ms status=200 bytes=3
我尝试使用
减少套接字 io 的日志记录量io.configure ()->
io.set "transports", ["xhr-polling"]
但看起来日志记录可能在 heroku 级别而不是 socket.io 级别。
【问题讨论】: