From f0f30fa8dedba475980f27e4709dd2573ccfcae1 Mon Sep 17 00:00:00 2001 From: Reinier Balt Date: Wed, 8 Apr 2009 09:18:51 +0200 Subject: [PATCH] set logger for openid to default logger. The openid gem defaults logging to STDERR which could lead to write errors on some restricted hosting providers see discussion at http://www.getontracks.org/forums/viewthread/367/ --- config/environment.rb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/config/environment.rb b/config/environment.rb index f6237b21..8a8c0af9 100644 --- a/config/environment.rb +++ b/config/environment.rb @@ -85,8 +85,10 @@ if ( SITE_CONFIG['authentication_schemes'].include? 'ldap') SimpleLdapAuthenticator.use_ssl = ldap['ssl'] SimpleLdapAuthenticator.login_format = ldap['login_format'] end + if ( SITE_CONFIG['authentication_schemes'].include? 'open_id') #requires ruby-openid gem to be installed + OpenID::Util.logger = RAILS_DEFAULT_LOGGER end - + TRACKS_VERSION='1.7.1dev'