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

Client logger level is not updated by client.log_level= #152

Closed
jsmartt opened this issue Feb 1, 2017 · 0 comments
Closed

Client logger level is not updated by client.log_level= #152

jsmartt opened this issue Feb 1, 2017 · 0 comments

Comments

@jsmartt
Copy link
Collaborator

jsmartt commented Feb 1, 2017

Scenario/Intent

I would like to be able to update a client's logger's level using the client object's log_level attribute. It is defined as an attribute_accessor, but changing it after creation does absolutely nothing to the actual logger.

Environment Details

  • OneView SDK Version: 3.1.0
  • OneView Appliance Version: All

Steps to Reproduce

@client = OneviewSDK::Client.new(url: 'https://oneview.example.com', log_level: :warn)
@client.logger.level # Note this value (2)
@client.log_level = :info
@client.logger.level # Note that this value hasn't changed (still 2)

Expected Result

I expect @client.log_level = :info it to update the logger's level.

Actual Result

The logger's level does not get updated.

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

No branches or pull requests

1 participant