You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe.
The current logging setup does not distinguish between development and production environments, potentially exposing sensitive information in production logs while making it difficult to debug in a development setting.
Describe the solution you'd like
Introduce an environment variable (ENVIRONMENT) to specify whether the application is running in development or production mode.
Adjust log levels and formats based on the value of this environment variable:
Development: Detailed logs with debug information.
Production: Essential logs with warning and error information only, potentially in a more secure format.
Describe alternatives you've considered
Keeping a single log configuration for all environments, which risks either verbose logs in production or insufficient information in development.
Additional context
Add necessary checks and configuration adjustments in main.py and ensure the environment variable is considered in the logging setup. Thoroughly test the different log levels and formats to confirm the behavior aligns with the environment specified.
The text was updated successfully, but these errors were encountered:
If no one is assigned to the issue, feel free to tackle it, without confirmation from us, after registering your attempt. In the event that multiple PRs are made from different people, we will generally accept those with the cleanest code.
Please respect others by working on PRs that you are allowed to submit attempts to.
e.g. If you reached the limit of active attempts, please wait for the ability to do so before submitting a new PR.
If you can not submit an attempt, you will not receive your payout.
Thank you for contributing to daytonaio/devcontainer-generator!
Is your feature request related to a problem? Please describe.
The current logging setup does not distinguish between development and production environments, potentially exposing sensitive information in production logs while making it difficult to debug in a development setting.
Describe the solution you'd like
ENVIRONMENT
) to specify whether the application is running in development or production mode.Describe alternatives you've considered
Additional context
Add necessary checks and configuration adjustments in
main.py
and ensure the environment variable is considered in the logging setup. Thoroughly test the different log levels and formats to confirm the behavior aligns with the environment specified.The text was updated successfully, but these errors were encountered: