Skip to content

Commit

Permalink
Use Colorize.on_tty_only!
Browse files Browse the repository at this point in the history
  • Loading branch information
HertzDevil committed Feb 23, 2024
1 parent 6156de4 commit c01330c
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 c01330c

Please sign in to comment.