Skip to content
This repository has been archived by the owner on Mar 24, 2020. It is now read-only.

Commit

Permalink
Merge pull request #117 from ucsdlib/feature/DHH-686
Browse files Browse the repository at this point in the history
Inserting logger for debugging the pager issue on production.(DHH-686)
  • Loading branch information
hweng committed Jul 2, 2015
2 parents 8337f97 + 7f00626 commit 5e0b470
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -424,3 +424,6 @@ DEPENDENCIES
uglifier (~> 2.5.3)
unicode (= 0.4.4)
unicorn (~> 4.8.3)

BUNDLED WITH
1.10.3
13 changes: 13 additions & 0 deletions app/controllers/dams_resource_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,19 @@ def show
# if we were redirected from counter, setup next/prev
controllers = ["catalog", "dams_collections", "dams_objects"]
setup_next_and_previous_documents if controllers.include?(refcon)

logger.info "setup_next_and_previous_documents start ..."
logger.info "#{Time.now}"
logger.debug "refcon: #{refcon} "

if controllers.include?(refcon)
if search_session[:counter] and current_search_session
logger.debug "search_session[:counter] is: #{search_session[:counter]}"
logger.debug "@search_context_response is: #{@search_context_response}"
logger.debug "@previous_document is: #{@previous_document}"
end
end

end

# get metadata from solr
Expand Down

0 comments on commit 5e0b470

Please sign in to comment.