Compare commits

...

2 Commits

Author SHA1 Message Date
anniel-stripe
3ba3e10ec8
Update log level error (#1238) 2023-06-23 07:40:34 -07:00
Ivan Marynych
6dce6c1240
remove unnecessary log level from available (#1235)
* remove unnecessary log level from available

* Update stripe_configuration.rb
2023-06-23 06:49:11 -07:00

View File

@ -86,13 +86,16 @@ module Stripe
val = Stripe::LEVEL_DEBUG val = Stripe::LEVEL_DEBUG
elsif val == "info" elsif val == "info"
val = Stripe::LEVEL_INFO val = Stripe::LEVEL_INFO
elsif val == "error"
val = Stripe::LEVEL_ERROR
end end
levels = [Stripe::LEVEL_INFO, Stripe::LEVEL_DEBUG, Stripe::LEVEL_ERROR] levels = [Stripe::LEVEL_INFO, Stripe::LEVEL_DEBUG, Stripe::LEVEL_ERROR]
if !val.nil? && !levels.include?(val) if !val.nil? && !levels.include?(val)
raise ArgumentError, raise ArgumentError,
"log_level should only be set to `nil`, `debug` or `info`" "log_level should only be set to `nil`, `debug`, `info`," \
" or `error`"
end end
@log_level = val @log_level = val
end end