mirror of
https://github.com/stripe/stripe-ruby.git
synced 2025-10-04 00:00:47 -04:00
This changes the predicate supplied to the #colorize method to ensure that if a logger is set, the colorizing ANSI escape codes are not applied. This definitely appears to have been the intention behind the original implementation, but the tests didn't reflect how .log_internal was actually called. In reality, it is always supplied with an `out:` argument, not nil. This caused all logger bound output to also be colorized.