From 2ac549c40afc363a2d6515015d77276db7011a81 Mon Sep 17 00:00:00 2001 From: Fijxu Date: Mon, 27 Apr 2026 20:26:34 -0400 Subject: [PATCH] chore: remove deprecated method `Colorize.on_tty_only!` from Invidious LogHandler This method has been the default since Crystal 1.17.0: https://github.com/crystal-lang/crystal/pull/15881 Is going to get deprecated when Crystal 1.21.0 is released: https://github.com/crystal-lang/crystal/pull/16859 This should only be merged if we only want to support 1.17.0 and up as is not a critical thing we have to fix, so this PR can wait until we deprecate Crystal <1.17.0 --- src/invidious/helpers/logger.cr | 1 - 1 file changed, 1 deletion(-) diff --git a/src/invidious/helpers/logger.cr b/src/invidious/helpers/logger.cr index 033495955..edae99aae 100644 --- a/src/invidious/helpers/logger.cr +++ b/src/invidious/helpers/logger.cr @@ -14,7 +14,6 @@ end class Invidious::LogHandler < Kemal::BaseLogHandler def initialize(@io : IO = STDOUT, @level = LogLevel::Debug, use_color : Bool = true) Colorize.enabled = use_color - Colorize.on_tty_only! end def call(context : HTTP::Server::Context)