mirror of
https://github.com/iv-org/invidious.git
synced 2026-04-29 01:29:39 -05:00
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
This commit is contained in:
parent
fd313e0107
commit
2ac549c40a
@ -14,7 +14,6 @@ end
|
|||||||
class Invidious::LogHandler < Kemal::BaseLogHandler
|
class Invidious::LogHandler < Kemal::BaseLogHandler
|
||||||
def initialize(@io : IO = STDOUT, @level = LogLevel::Debug, use_color : Bool = true)
|
def initialize(@io : IO = STDOUT, @level = LogLevel::Debug, use_color : Bool = true)
|
||||||
Colorize.enabled = use_color
|
Colorize.enabled = use_color
|
||||||
Colorize.on_tty_only!
|
|
||||||
end
|
end
|
||||||
|
|
||||||
def call(context : HTTP::Server::Context)
|
def call(context : HTTP::Server::Context)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user