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

@ttilberg

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions