mirror of
https://git.nadeko.net/Fijxu/invidious.git
synced 2026-01-06 15:01:17 +00:00
Make logger a constant
Instead of passing around `logger` there is now the global `LOGGER`.
This commit is contained in:
@@ -62,7 +62,7 @@ class Invidious::Routes::Watch < Invidious::Routes::BaseRoute
|
||||
rescue ex : VideoRedirect
|
||||
return env.redirect env.request.resource.gsub(id, ex.video_id)
|
||||
rescue ex
|
||||
logger.error("get_video: #{id} : #{ex.message}")
|
||||
LOGGER.error("get_video: #{id} : #{ex.message}")
|
||||
return error_template(500, ex)
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user