mirror of
https://github.com/stripe/stripe-ruby.git
synced 2025-06-06 00:01:04 -04:00
Merge upstream and update generated code for v394
This commit is contained in:
commit
456f10ab93
@ -1 +1 @@
|
||||
v392
|
||||
v394
|
@ -89,13 +89,16 @@ module Stripe
|
||||
val = Stripe::LEVEL_DEBUG
|
||||
elsif val == "info"
|
||||
val = Stripe::LEVEL_INFO
|
||||
elsif val == "error"
|
||||
val = Stripe::LEVEL_ERROR
|
||||
end
|
||||
|
||||
levels = [Stripe::LEVEL_INFO, Stripe::LEVEL_DEBUG, Stripe::LEVEL_ERROR]
|
||||
|
||||
if !val.nil? && !levels.include?(val)
|
||||
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
|
||||
@log_level = val
|
||||
end
|
||||
|
Loading…
x
Reference in New Issue
Block a user