Skip to content

Commit

Permalink
Use Rails logger
Browse files Browse the repository at this point in the history
  • Loading branch information
Wuhsien.Yu committed Jan 24, 2011
1 parent 34ef0cb commit f6aa22a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/authenticators/google.rb
Expand Up @@ -45,12 +45,12 @@ def validate(credentials)
when Net::HTTPForbidden
false
else
$LOG.error("Unexpected response from Google while validating credentials: #{res.inspect} ==> #{res.body}.")
Rails.logger.error("Unexpected response from Google while validating credentials: #{res.inspect} ==> #{res.body}.")
raise CASServer::AuthenticatorError, "Unexpected response received from Google while validating credentials."
end
end
rescue Timeout::Error
$LOG.error("Google did not respond to the credential validation request. We waited for #{wait_seconds.inspect} seconds before giving up.")
Rails.logger.error("Google did not respond to the credential validation request. We waited for #{wait_seconds.inspect} seconds before giving up.")
raise CASServer::AuthenticatorError, "Timeout while waiting for Google to validate credentials."
end

Expand Down

0 comments on commit f6aa22a

Please sign in to comment.