Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Zuora.configure With :log => true Raises NoMethodError #32

Open
sshaw opened this issue Sep 26, 2016 · 1 comment
Open

Zuora.configure With :log => true Raises NoMethodError #32

sshaw opened this issue Sep 26, 2016 · 1 comment

Comments

@sshaw
Copy link

sshaw commented Sep 26, 2016

Using the .configure example from the README causes the following exception:

~/code/ruby/zoura-test >ruby run.rb
DEPRECATION WARNING: alias_method_chain is deprecated. Please, use Module#prepend instead. From module, you can access the original method using super. (called from require at /Users/skyes/.rvm/rubies/ruby-2.2.5/lib/ruby/site_ruby/2.2.0/rubygems/core_ext/kernel_require.rb:54)
/Users/skyes/.rvm/gems/ruby-2.2.5/gems/savon-2.3.3/lib/savon/request_logger.rb:29:in `log_request': undefined method `info' for nil:NilClass (NoMethodError)
    from /Users/skyes/.rvm/gems/ruby-2.2.5/gems/savon-2.3.3/lib/savon/request_logger.rb:11:in `log'
    from /Users/skyes/.rvm/gems/ruby-2.2.5/gems/savon-2.3.3/lib/savon/operation.rb:86:in `call_with_logging'
    from /Users/skyes/.rvm/gems/ruby-2.2.5/gems/savon-2.3.3/lib/savon/operation.rb:51:in `call'
    from /Users/skyes/.rvm/gems/ruby-2.2.5/gems/savon-2.3.3/lib/savon/client.rb:36:in `call'
    from /Users/skyes/.rvm/gems/ruby-2.2.5/gems/zuora-1.0.0/lib/zuora/api.rb:105:in `authenticate!'
    from /Users/skyes/.rvm/gems/ruby-2.2.5/gems/zuora-1.0.0/lib/zuora/api.rb:85:in `request'
    from /Users/skyes/.rvm/gems/ruby-2.2.5/gems/zuora-1.0.0/lib/zuora/soap_connector.rb:11:in `query'
    from /Users/skyes/.rvm/gems/ruby-2.2.5/gems/zuora-1.0.0/lib/zuora/objects/base.rb:82:in `all'
    from run.rb:10:in `<main>'
@sshaw
Copy link
Author

sshaw commented Sep 27, 2016

This is because we're telling Savon to log but a nil :logger option is being passed in.

Should probably just create a default STDERR logger. Using :log => true without having to create a logger is a slight convenience to the caller.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant