lib/client/utils.rb in stomp-1.3.1 vs lib/client/utils.rb in stomp-1.3.2
- old
+ new
@@ -141,10 +141,12 @@
@listeners = {}
@receipt_listeners = {}
@replay_messages_by_txn = {}
@listener_map = Hash.new do |message|
- @logger.on_miscerr(@connection.log_params, "Received unknown frame type: '#{message.command}'\n")
+ unless @connection.slog(:on_miscerr, @connection.log_params, "Received unknown frame type: '#{message.command}'\n")
+ warn "Received unknown frame type: '#{message.command}'\n"
+ end
end
@listener_map[Stomp::CMD_MESSAGE] = lambda {|message| find_listener(message) }
@listener_map[Stomp::CMD_RECEIPT] = lambda {|message| find_receipt_listener(message) }
@listener_map[Stomp::CMD_ERROR] = @error_listener