omniauth / omniauth-ldap

LDAP strategy for OmniAuth
145 stars 159 forks source link

Debugging via Rails logger? #13

Open CNDLS opened 12 years ago

CNDLS commented 12 years ago

Thanks for a great addition to omniauth. I have a question about using the Rails.logger for debugging output. I'm working with an LDAP server that requires an SSL connection. When I try to authenticate, I get to my devise callback controller, but there is no omniauth.auth field in my env variable, and there is also no indication of an error, in env or in the callback request params. I'm passing Rails.logger in as a :logger in my config, and everything starts up correctly, but when I put a @logger.debug statement in the top of def callback_phase in strategies/ldap.rb, I don't get the output. How can I determine what's going on? Thanks for any help.

CNDLS commented 12 years ago

Should add that calls to log, :debug, "" or self.log, :debug, "" are ignored. Log level in Rails environment config is set to debug.

kammerer commented 8 years ago

+1