Skip to content

Commit

Permalink
Log referer for the requests to the legacy controller
Browse files Browse the repository at this point in the history
We'd like to retire this someday, but the requests keep coming
  • Loading branch information
jcoyne committed Dec 4, 2023
1 parent 03ce4a2 commit 94ebc1f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions app/controllers/legacy_image_service_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ class LegacyImageServiceController < ApplicationController
##
# Redirect legacy image requests to their IIIF equivalents
def show
# Logging to see where these requests are coming from and if we can update them to use the right path
logger.info(" HTTP Referer: #{request.referer[0..100]}") if request.referer
redirect_to iiif_path(iiif_options)
end

Expand Down

0 comments on commit 94ebc1f

Please sign in to comment.