Skip to content

Commit

Permalink
Remove unused methods in Invidious::LogHandler (#4812)
Browse files Browse the repository at this point in the history
Closes issue 4791
  • Loading branch information
SamantazFox committed Aug 11, 2024
2 parents fa6c515 + e098c27 commit 9bf754e
Showing 1 changed file with 0 additions and 13 deletions.
13 changes: 0 additions & 13 deletions src/invidious/helpers/logger.cr
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 9bf754e

Please sign in to comment.