lib/firehose/rack/consumer.rb in firehose-1.2.7 vs lib/firehose/rack/consumer.rb in firehose-1.2.8
- old
+ new
@@ -148,10 +148,10 @@
end
Firehose.logger.debug "WS connection `#{@path}` closing. Code: #{event.code.inspect}; Reason #{event.reason.inspect}"
end
def handle_error(event)
- Firehose.logger.error "WS connection `#{@path}` error `#{event.inspect}`"
+ Firehose.logger.error "WS connection `#{@path}` error. Message: `#{event.message.inspect}`; Data: `#{event.data.inspect}`"
end
def self.wrap_frame(message, last_sequence)
JSON.generate :message => message, :last_sequence => last_sequence
end