我有一个Hapi
安装,它good
用作日志插件和good-logstash-tcp
扩展以将日志发送到logstash
.
我当前的问题是logstash
服务器有时可能不可用,并且当前导致整个服务器崩溃并出现如下错误:
/.../node_modules/good-logstash-tcp/lib/logstash.js:178
self.emit('error', new Error('Max retries reached, transport in silent mode, OFFLINE'));
^
Error: Max retries reached, transport in silent mode, OFFLINE
at Socket.<anonymous> (/.../node_modules/good-logstash-tcp/lib/logstash.js:178:36)
at emitOne (events.js:96:13)
at Socket.emit (events.js:191:7)
at TCP._handle.close [as _onclose] (net.js:511:12)
Hapi
即使由于某种原因记录失败,是否有一种简单的方法可以继续运行?