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

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

Open
crowecawcaw opened this issue Aug 19, 2024 · 1 comment
Labels
enhancement New feature or request

Comments

@crowecawcaw
Copy link

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))
@jusiskin jusiskin added the enhancement New feature or request label Aug 20, 2024
@jusiskin
Copy link
Contributor

Hi @crowecawcaw. Thanks for your contribution. This sounds like a useful feature request. The team will have a look at this an prioritize it accordingly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants