lib/splash/loggers/cli.rb in prometheus-splash-0.7.0 vs lib/splash/loggers/cli.rb in prometheus-splash-0.8.0

- old
+ new

@@ -8,10 +8,11 @@ # Cli specific logger class Cli < Splash::Loggers::LoggerTemplate include Splash::Config + include Splash::Helpers # mapping of UTf-8 emoji for log levels or alias EMOJI = { :unknown => "\u{1F4A5}", :fatal => "\u{26D4}", :error => "\u{1F6AB}", @@ -80,19 +81,10 @@ # @param [Boolean] status def color=(status) get_config.loggers[:cli][:color] = status end - # check if unicode must be used with term ENV - # @return [Boolean] - def check_unicode_term - return false unless ENV.include? "TERM" - if ENV.values_at("LC_ALL","LC_CTYPE","LANG").compact.first.include?("UTF-8") and ENV.values_at('TERM').first.include? "xterm" then - return true - else - return false - end - end + end end end