Send OpenID logging to rails log
authorTom Hughes <tom@compton.nu>
Tue, 31 Mar 2015 13:31:51 +0000 (14:31 +0100)
committerTom Hughes <tom@compton.nu>
Tue, 31 Mar 2015 13:31:51 +0000 (14:31 +0100)
config/initializers/omniauth.rb

index 8190a65b96fb63b4c30773a0f5b5b8aa85e86ce1..ea174a83eb38e43f3e33bcc34f77d9c42fd6d813 100644 (file)
@@ -1,8 +1,10 @@
 require "openid/fetchers"
 require "openid/fetchers"
+require "openid/util"
 
 CA_BUNDLES = ["/etc/ssl/certs/ca-certificates.crt", "/etc/pki/tls/cert.pem"]
 
 OpenID.fetcher.ca_file = CA_BUNDLES.find { |f| File.exist?(f) }
 
 CA_BUNDLES = ["/etc/ssl/certs/ca-certificates.crt", "/etc/pki/tls/cert.pem"]
 
 OpenID.fetcher.ca_file = CA_BUNDLES.find { |f| File.exist?(f) }
+OpenID::Util.logger = Rails.logger
 
 OmniAuth.config.logger = Rails.logger
 OmniAuth.config.failure_raise_out_environments = []
 
 OmniAuth.config.logger = Rails.logger
 OmniAuth.config.failure_raise_out_environments = []