def update(message)
      case message.fetch(:type){""}
      when "error"
        logger.error message
      else
        logger.info message
      end
      exchange_out.publish(message.to_json)
    end
def update(message)
      case message.fetch(:type){""}
      when "error"
        logger.error message
      else
        logger.info message
      end
      exchange_out.publish(message.to_json)
    end
Public: Method that is triggered when a consumer notifies with a message. It
 logs the messages and writes them to the output exchange as json.

 message - A general message (Hash, String, etc)

 Examples

   update("A message")

 Returns nothing.