Compare commits

..

No commits in common. "3ba3e10ec894f0a496bc19d206760b55da704688" and "d297fdef7d03602cc265685a95ff77259d2752ec" have entirely different histories.

View File

@ -86,16 +86,13 @@ 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`, `info`," \
" or `error`"
"log_level should only be set to `nil`, `debug` or `info`"
end
@log_level = val
end