Skip to content

Commit

Permalink
More error logging.
Browse files Browse the repository at this point in the history
  • Loading branch information
benubois committed Oct 10, 2023
1 parent 1682aea commit 336a012
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions app.rb
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,8 @@ def download(url)
headers("X-XSS-Protection" => "1; mode=block")
expires(time_for(DateTime.now.next_year), :public)

logger.error "Serving url=#{url} privacy_url=#{params["signature"]}/#{params["url"]}"

stream do |out|
response.body.each do |chunk|
out << chunk
Expand Down

0 comments on commit 336a012

Please sign in to comment.