Skip to content

Commit

Permalink
Merge pull request #1059 from sul-dlss/logging-legacy
Browse files Browse the repository at this point in the history
Log referer for the requests to the legacy controller
  • Loading branch information
aaron-collier authored Dec 6, 2023
2 parents 9b03d04 + 94ebc1f commit 968be36
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 968be36

Please sign in to comment.