Remove unused methods in Invidious::LogHandler (#4812)

Closes issue 4791
This commit is contained in:
Samantaz Fox 2024-08-11 11:45:56 +02:00
commit 9bf754ed4f
No known key found for this signature in database
GPG Key ID: F42821059186176E
1 changed files with 0 additions and 13 deletions

View File

@ -34,24 +34,11 @@ class Invidious::LogHandler < Kemal::BaseLogHandler
context
end
def puts(message : String)
@io << message << '\n'
@io.flush
end
def write(message : String)
@io << message
@io.flush
end
def set_log_level(level : String)
@level = LogLevel.parse(level)
end
def set_log_level(level : LogLevel)
@level = level
end
{% for level in %w(trace debug info warn error fatal) %}
def {{level.id}}(message : String)
if LogLevel::{{level.id.capitalize}} >= @level