Skip to content

Feature request: Support configuring log level from an environment variable #140

@crowecawcaw

Description

@crowecawcaw

Use Case

I'm debugging an adapter which uses this adapter runtime. I'm getting a "File not found" error but the error lacks additional context and I'm looking for more logs to figure out what's going on. In some places, this runtime emits debug logs but they're not enabled by default.

Proposed Solution

Pull the log level from an environment variable if available so someone can tack on an env variable to get additional logs and doesn't need to rebuild packages. Example code for here:

_logger = logging.Logger(__name__, os.environ.get("OPENJD_ADAPTER_LOGGING_LEVEL", logging.INFO))

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions