Skip to content
This repository has been archived by the owner on Dec 8, 2020. It is now read-only.

Feature Request: Set source_id and api_key in env #208

Open
ttilberg opened this issue May 24, 2019 · 0 comments
Open

Feature Request: Set source_id and api_key in env #208

ttilberg opened this issue May 24, 2019 · 0 comments

Comments

@ttilberg
Copy link

I was looking at the code that configures the source/api_key in the HTTP log device, and was wondering if there was a specific reason the API key and Source do not have an env configuration as well. If there isn't one, can we add it?

        @api_key = api_key || raise(ArgumentError.new("The api_key parameter cannot be blank"))
        @source_id = args.first
        @timber_host = options[:timber_host] || ENV['TIMBER_HOST'] || TIMBER_HOST
        @timber_port = options[:timber_port] || ENV['TIMBER_PORT'] || TIMBER_PORT
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant