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

Logging doesn't appear to work #722

Open
chrisroos opened this issue Jul 20, 2017 · 0 comments
Open

Logging doesn't appear to work #722

chrisroos opened this issue Jul 20, 2017 · 0 comments

Comments

@chrisroos
Copy link
Contributor

The README explains that I can enable logging by setting GdsApi::Base.logger = Logger.new("/path/to/file.log"). I'm trying this locally but am not seeing any log output:

require 'gds_api/base'
GdsApi::Base.logger = Logger.new($stdout)
require 'gds_api/asset_manager'
asset_manager = GdsApi::AssetManager.new(Plek.find('asset-manager'))
asset_manager.asset('foo')

Am I missing something or should I expect this to work?

As an alternative I've been setting the RESTCLIENT_LOG environment variable (as per https://github.com/rest-client/rest-client#logging) in order to see the HTTP requests being made.

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