Sha256: 31f508415beee15353eccfa29c360fe15fcf6b07dccf072115a21a38bd531403

Contents?: true

Size: 524 Bytes

Versions: 50

Compression:

Stored size: 524 Bytes

Contents

module FbGraph2
  module RequestFilter
    class Debugger
      def filter_request(request)
        started = "======= [FbGraph2] API REQUEST STARTED ======="
        log started, request.dump
      end

      def filter_response(request, response)
        finished = "======= [FbGraph2] API REQUEST FINISHED ======="
        log '-' * 50, response.dump, finished
      end

      private

      def log(*outputs)
        outputs.each do |output|
          FbGraph2.logger.info output
        end
      end
    end
  end
end

Version data entries

50 entries across 50 versions & 1 rubygems

Version Path
fb_graph2-1.3.0 lib/fb_graph2/request_filter/debugger.rb
fb_graph2-1.2.0 lib/fb_graph2/request_filter/debugger.rb
fb_graph2-1.1.1 lib/fb_graph2/request_filter/debugger.rb
fb_graph2-1.1.0 lib/fb_graph2/request_filter/debugger.rb
fb_graph2-1.0.1 lib/fb_graph2/request_filter/debugger.rb
fb_graph2-1.0.0 lib/fb_graph2/request_filter/debugger.rb
fb_graph2-0.9.1 lib/fb_graph2/request_filter/debugger.rb
fb_graph2-0.9.0 lib/fb_graph2/request_filter/debugger.rb
fb_graph2-0.8.0 lib/fb_graph2/request_filter/debugger.rb
fb_graph2-0.7.9 lib/fb_graph2/request_filter/debugger.rb
fb_graph2-0.7.8 lib/fb_graph2/request_filter/debugger.rb
fb_graph2-0.7.7 lib/fb_graph2/request_filter/debugger.rb
fb_graph2-0.7.6 lib/fb_graph2/request_filter/debugger.rb
fb_graph2-0.7.5 lib/fb_graph2/request_filter/debugger.rb
fb_graph2-0.7.4 lib/fb_graph2/request_filter/debugger.rb
fb_graph2-0.7.3 lib/fb_graph2/request_filter/debugger.rb
fb_graph2-0.7.2 lib/fb_graph2/request_filter/debugger.rb
fb_graph2-0.7.1 lib/fb_graph2/request_filter/debugger.rb
fb_graph2-0.7.0 lib/fb_graph2/request_filter/debugger.rb
fb_graph2-0.6.2 lib/fb_graph2/request_filter/debugger.rb