Skip to content

Commit 4ccfbc5

Browse files
authored
Merge pull request #6772 from hotosm/fastapi-refactor
sentry variable config initialized with string
2 parents 7bfa0be + 9c630fa commit 4ccfbc5

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

backend/config.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,8 @@ def assemble_db_connection(
111111
# Logging settings
112112
LOG_LEVEL: int = os.getenv("TM_LOG_LEVEL", logging.DEBUG)
113113
LOG_DIR: str = os.getenv("TM_LOG_DIR", "/home/appuser/logs")
114-
USE_SENTRY: bool = os.getenv("USE_SENTRY", True)
114+
USE_SENTRY: bool = os.getenv("USE_SENTRY", "false").lower() == "true"
115+
115116
# Mapper Level values represent number of OSM changesets
116117
MAPPER_LEVEL_INTERMEDIATE: int = int(os.getenv("TM_MAPPER_LEVEL_INTERMEDIATE", 250))
117118
MAPPER_LEVEL_ADVANCED: int = int(os.getenv("TM_MAPPER_LEVEL_ADVANCED", 500))

0 commit comments

Comments
 (0)