Skip to content

Commit

Permalink
refactor(config_utils): remove print statements
Browse files Browse the repository at this point in the history
Signed-off-by: GustaafL <guus@seita.nl>
  • Loading branch information
GustaafL committed Jan 3, 2024
1 parent 5c0ced7 commit 60fd909
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions flexmeasures/utils/config_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,15 +74,11 @@ def read_config(app: Flask, custom_path_to_config: str | None):

flexmeasures_env = DefaultConfig.FLEXMEASURES_ENV_DEFAULT
if app.testing:
print("A")
flexmeasures_env = "testing"
elif os.getenv("FLEXMEASURES_ENV", None):
print("B")
flexmeasures_env = os.getenv("FLEXMEASURES_ENV", None)
elif os.getenv("FLASK_ENV", None):
print("are we getting to this point")
flexmeasures_env = os.getenv("FLASK_ENV", None)

app.logger.warning(
"'FLASK_ENV' is deprecated and replaced by FLEXMEASURES_ENV"
" Change FLASK_ENV to FLEXMEASURES_ENV in the environment variables",
Expand Down

0 comments on commit 60fd909

Please sign in to comment.