Skip to content

Commit

Permalink
🍻 puts "response_body: #{body} -> #{response_body}"
Browse files Browse the repository at this point in the history
  • Loading branch information
r74tech committed Oct 8, 2024
1 parent eb06a9f commit ef7d665
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 2 additions & 0 deletions wikidotrb/lib/wikidotrb/connector/ajax.rb
Original file line number Diff line number Diff line change
Expand Up @@ -169,6 +169,8 @@ def handle_response(response, body, retry_count)

raise ResponseDataException, "AMC is respond empty data" if response_body.nil? || response_body.empty?

puts "response_body: #{body} -> #{response_body}"

handle_wikidot_status(response_body, body, retry_count)
rescue JSON::ParserError
@logger.error("AMC is respond non-json data: \"#{response.body}\" -> #{body}")
Expand Down
2 changes: 0 additions & 2 deletions wikidotrb/lib/wikidotrb/module/page.rb
Original file line number Diff line number Diff line change
Expand Up @@ -164,8 +164,6 @@ def self.search_pages(site, query = SearchPagesQuery.new)
raise e
end

puts "response_data: #{query_dict.inspect} -> #{response_data.inspect}"

body = response_data["body"]
first_page_html_body = Nokogiri::HTML(body)

Expand Down

0 comments on commit ef7d665

Please sign in to comment.