From: Tom Hughes Date: Tue, 31 Mar 2015 13:31:51 +0000 (+0100) Subject: Send OpenID logging to rails log X-Git-Tag: live~4734 X-Git-Url: https://git.openstreetmap.org/rails.git/commitdiff_plain/8ad2f4b5c8f14f97c44e91a599e6e7acb6f74f0b Send OpenID logging to rails log --- diff --git a/config/initializers/omniauth.rb b/config/initializers/omniauth.rb index 8190a65b9..ea174a83e 100644 --- a/config/initializers/omniauth.rb +++ b/config/initializers/omniauth.rb @@ -1,8 +1,10 @@ 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) } +OpenID::Util.logger = Rails.logger OmniAuth.config.logger = Rails.logger OmniAuth.config.failure_raise_out_environments = []