Skip to content

Commit

Permalink
add logs
Browse files Browse the repository at this point in the history
  • Loading branch information
taylorfinnell committed Oct 31, 2018
1 parent 9bd4fe4 commit 9bdcfc8
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/hqtrivia/show_coordinator/hq_coordinator.cr
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ module HqTrivia
retryable(on: HttpException | Socket::Error, tries: 5, wait: 1, callback: connection_failed) do
resp = HTTP::Client.get("https://api-quiz.hype.space/shows/now?type=hq", headers: HqTrivia.auth.header(@country))

HqTrivia.logger.debug("#{self.class.name} http response for #{@country}: #{resp.body}")

if (200..299).includes?(resp.status_code)
Model::Show.from_json(resp.body)
elsif resp.status_code == 401
Expand Down

0 comments on commit 9bdcfc8

Please sign in to comment.