Skip to content

Commit

Permalink
added a debug statement to see what is going on on the server
Browse files Browse the repository at this point in the history
  • Loading branch information
golnazads committed Jul 26, 2021
1 parent 9b2d085 commit ae5a956
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions resolverway/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,8 @@ def redirect(self, link):
# also if there are any spaces encode those as well
link = link.replace(self.bibcode, urllib.parse.quote(self.bibcode)).replace(' ', '%20')
response = redirect(link, 302)
current_app.logger.error('DEBUG --- take out --- redirect response', response)
current_app.logger.error('DEBUG --- take out --- redirect response self.user_id', self.user_id)
response.autocorrect_location_header = False
response.headers['user_id'] = self.user_id
return response, 302
Expand Down

0 comments on commit ae5a956

Please sign in to comment.