Skip to content

Commit

Permalink
Move logger
Browse files Browse the repository at this point in the history
  • Loading branch information
MUTOgen committed Jul 7, 2024
1 parent 308eddd commit 97b375b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/cypress_on_rails/vcr/insert_eject_middleware.rb
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@ def call(env)
def handle_insert(req)
WebMock.enable! if defined?(WebMock)
vcr.turn_on!
logger.info "vcr insert cassette: #{body}"
body = parse_request_body(req)
logger.info "vcr insert cassette: #{body}"
cassette_name, options = extract_cassette_info(body)
vcr.insert_cassette(cassette_name, options)
[201, { 'Content-Type' => 'application/json' }, [{ 'message': 'OK' }.to_json]]
Expand Down

0 comments on commit 97b375b

Please sign in to comment.