lib/httpx/loggable.rb in httpx-0.15.1 vs lib/httpx/loggable.rb in httpx-0.15.2

- old
+ new

@@ -18,10 +18,10 @@ return unless @options.debug_level >= level debug_stream = @options.debug message = (+"" << msg.call << "\n") - message = "\e[#{COLORS[color]}m#{message}\e[0m" if debug_stream.respond_to?(:isatty) && debug_stream.isatty + message = "\e[#{COLORS[color]}m#{message}\e[0m" if color && debug_stream.respond_to?(:isatty) && debug_stream.isatty debug_stream << message end if !Exception.instance_methods.include?(:full_message)