Skip to content
Browse files

Adding some verbosity on redirect.

  • Loading branch information...
1 parent ef45e7f commit ffcdabc38b18d9def4408225cd02bf4b792f185a @freegenie freegenie committed
Showing with 8 additions and 2 deletions.
  1. +8 −2 lib/panmind/ssl_helper.rb
View
10 lib/panmind/ssl_helper.rb
@@ -146,11 +146,17 @@ def refuse_ssl(options = {})
protected
def ssl_required
- redirect_to params.merge(WITH_SSL) unless request.ssl?
+ unless request.ssl?
+ Rails.logger.info("SSL Helper: redirecting to SSL url")
+ redirect_to params.merge(WITH_SSL)
+ end
end
def ssl_refused
- redirect_to params.merge(WITHOUT_SSL) if request.ssl?
+ if request.ssl?
+ Rails.logger.info("SSL Helper: redirecting to non-SSL url")
+ redirect_to params.merge(WITHOUT_SSL)
+ end
end
end # Filters

0 comments on commit ffcdabc

Please sign in to comment.
Something went wrong with that request. Please try again.