Skip to content

Commit

Permalink
Use Colorize.on_tty_only! (#620)
Browse files Browse the repository at this point in the history
  • Loading branch information
HertzDevil committed Feb 27, 2024
1 parent 6156de4 commit e20270d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/logger.cr
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ require "colorize"
require "log"

module Shards
class_property? colors = true
class_property? colors : Bool = Colorize.on_tty_only!
end

Log.setup_from_env(
Expand Down

0 comments on commit e20270d

Please sign in to comment.