mirror of https://github.com/iv-org/invidious.git
Remove unused methods in Invidious::LogHandler (#4812)
Closes issue 4791
This commit is contained in:
commit
9bf754ed4f
|
@ -34,24 +34,11 @@ class Invidious::LogHandler < Kemal::BaseLogHandler
|
||||||
context
|
context
|
||||||
end
|
end
|
||||||
|
|
||||||
def puts(message : String)
|
|
||||||
@io << message << '\n'
|
|
||||||
@io.flush
|
|
||||||
end
|
|
||||||
|
|
||||||
def write(message : String)
|
def write(message : String)
|
||||||
@io << message
|
@io << message
|
||||||
@io.flush
|
@io.flush
|
||||||
end
|
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) %}
|
{% for level in %w(trace debug info warn error fatal) %}
|
||||||
def {{level.id}}(message : String)
|
def {{level.id}}(message : String)
|
||||||
if LogLevel::{{level.id.capitalize}} >= @level
|
if LogLevel::{{level.id.capitalize}} >= @level
|
||||||
|
|
Loading…
Reference in New Issue