lib/castronaut/adapters/ldap/user.rb in relevance-castronaut-0.4.1 vs lib/castronaut/adapters/ldap/user.rb in relevance-castronaut-0.4.2

- old
+ new

@@ -26,10 +26,10 @@ connection.authenticate("#{prefix}#{username}, #{base}", password) if connection.bind return Castronaut::AuthenticationResult.new(username, nil) else - puts "#{self} - Unable to authenticate username #{username} because #{connection.get_operation_result.message} : code #{connection.get_operation_result.code}" + Castronaut.config.logger.info "#{self} - Unable to authenticate username #{username} because #{connection.get_operation_result.message} : code #{connection.get_operation_result.code}" return Castronaut::AuthenticationResult.new(username, "Unable to authenticate the username #{username}") end end end