lib/stripe/util.rb in stripe-3.17.1 vs lib/stripe/util.rb in stripe-3.17.2
- old
+ new
@@ -394,10 +394,10 @@
# TODO: Make these named required arguments when we drop support for Ruby
# 2.0.
def self.log_internal(message, data = {}, color: nil, level: nil, logger: nil, out: nil)
data_str = data.reject { |_k, v| v.nil? }
.map do |(k, v)|
- format("%s=%s", colorize(k, color, !out.nil? && out.isatty), wrap_logfmt_value(v))
+ format("%s=%s", colorize(k, color, logger.nil? && !out.nil? && out.isatty), wrap_logfmt_value(v))
end.join(" ")
if !logger.nil?
# the library's log levels are mapped to the same values as the
# standard library's logger