Skip to content

Ability to set the log level in backend #1024

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

Open
1 of 4 tasks
m4rb3n opened this issue Mar 4, 2025 · 2 comments · May be fixed by #1026
Open
1 of 4 tasks

Ability to set the log level in backend #1024

m4rb3n opened this issue Mar 4, 2025 · 2 comments · May be fixed by #1026
Labels
type:feature New feature description e.g. which involves implementation of new components

Comments

@m4rb3n
Copy link

m4rb3n commented Mar 4, 2025

Feature Category

  • Correctness
  • User Interface / User Experience
  • Performance
  • Other (please explain)

Describe the problem

We use mwdb heavily in our workload and we collect logs to detect problems that might occur.
Since we are using this solution in the cloud we pay for logs storage and we would like to decrease the cost. We could achieve that if we could set the log level of the application.
For the frontends we just need to create a new nginx config file.
For the backends there is no way to do that. It would be a good feature to have.

Describe the solution you'd like

An environment variable with name "MWDB_LOG_LEVEL" could be created to set the current level we want,
info, warning or error.

@psrok1 psrok1 added the type:feature New feature description e.g. which involves implementation of new components label Mar 5, 2025
@psrok1 psrok1 linked a pull request Mar 5, 2025 that will close this issue
4 tasks
@psrok1
Copy link
Member

psrok1 commented Mar 5, 2025

Good idea! I will include it in #1026 along with ability to provide own https://docs.python.org/3/library/logging.config.html#logging.config.fileConfig in case someone wants to customize logging even more.

@m4rb3n
Copy link
Author

m4rb3n commented Mar 18, 2025

Thanks @psrok1 !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type:feature New feature description e.g. which involves implementation of new components
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants