summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorSamantaz Fox <coding@samantaz.fr>2024-08-11 11:45:56 +0200
committerSamantaz Fox <coding@samantaz.fr>2024-08-11 11:45:56 +0200
commit9bf754ed4ff90069367ed333a22db7d0c9e22a74 (patch)
treec53fe4a7410edc61f2d891a7b164e3b12339e396 /src
parentfa6c5158c55212722dcae1437a7329588c600cbf (diff)
parente098c27a4564f936443f298cb59ea63a49b0c118 (diff)
downloadinvidious-9bf754ed4ff90069367ed333a22db7d0c9e22a74.tar.gz
invidious-9bf754ed4ff90069367ed333a22db7d0c9e22a74.tar.bz2
invidious-9bf754ed4ff90069367ed333a22db7d0c9e22a74.zip
Remove unused methods in Invidious::LogHandler (#4812)
Closes issue 4791
Diffstat (limited to 'src')
-rw-r--r--src/invidious/helpers/logger.cr13
1 files changed, 0 insertions, 13 deletions
diff --git a/src/invidious/helpers/logger.cr b/src/invidious/helpers/logger.cr
index e2e50905..b443073e 100644
--- a/src/invidious/helpers/logger.cr
+++ b/src/invidious/helpers/logger.cr
@@ -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