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

Add getenv function #1189

Merged
merged 3 commits into from
May 22, 2024
Merged

Add getenv function #1189

merged 3 commits into from
May 22, 2024

Conversation

Josh-XT
Copy link
Owner

@Josh-XT Josh-XT commented May 22, 2024

Added a getenv function to Defaults.py to define all environment variable defaults in one place and call getenv to get the values in the environment or the default value defined in getenv.

  • Renamed LOGLEVEL environment variable to LOG_LEVEL and set default to INFO
  • Added LOG_FORMAT environment variable with default set to %(asctime)s | %(levelname)s | %(message)s

@Josh-XT Josh-XT merged commit c688b45 into main May 22, 2024
8 checks passed
@Josh-XT Josh-XT deleted the add-getenv branch May 22, 2024 19: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

1 participant