Skip to content

Commit a04bf60

Browse files
Merge branch 'main' into ci/codecov-integration
2 parents 65aa538 + fa2e192 commit a04bf60

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/server/main.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
app.add_exception_handler(RateLimitExceeded, rate_limit_exception_handler)
3030

3131
# Start metrics server in a separate thread if enabled
32-
if os.getenv("GITINGEST_METRICS_ENABLED", "false").lower() == "true":
32+
if os.getenv("GITINGEST_METRICS_ENABLED") is not None:
3333
metrics_host = os.getenv("GITINGEST_METRICS_HOST", "127.0.0.1")
3434
metrics_port = int(os.getenv("GITINGEST_METRICS_PORT", "9090"))
3535
metrics_thread = threading.Thread(

0 commit comments

Comments
 (0)