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

Feature Request: Set source_id and api_key in env #208

Description

@ttilberg

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

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions