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

Allow configuration of log level in REST API #541

Merged
merged 2 commits into from
Nov 4, 2020
Merged

Conversation

tholor
Copy link
Member

@tholor tholor commented Nov 4, 2020

If you are running the REST API within a docker container and want to debug, you want an easy way to switch the log level from info to debug.

This PR adds an environment variable LOG_LEVEL that you can set to the common python log level strings (INFO, DEBUG ...). It will be applied for all loggers within haystack (but not external ones like FARM or elasticsearch)

@tholor
Copy link
Member Author

tholor commented Nov 4, 2020

Related to #359

@tholor tholor requested a review from tanaysoni November 4, 2020 08:28
@tholor tholor merged commit 46fac41 into master Nov 4, 2020
@julian-risch julian-risch deleted the debug_mode_api branch November 15, 2021 07:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants