From 73bf3f5ab440a450f7a18dce45c803521ca4eaff Mon Sep 17 00:00:00 2001 From: Simon Golms Date: Fri, 24 Jan 2020 19:04:39 +0100 Subject: [PATCH] fix(config): parse env variable as int (#359) - parse SENTRY_EVENT_RETENTION_DAYS as integer in case it is defined as a string like in kubernetes --- sentry/sentry.conf.example.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sentry/sentry.conf.example.py b/sentry/sentry.conf.example.py index b2aedcf..a11cb41 100644 --- a/sentry/sentry.conf.example.py +++ b/sentry/sentry.conf.example.py @@ -29,7 +29,7 @@ SENTRY_USE_BIG_INTS = True # and thus various UI optimizations should be enabled. SENTRY_SINGLE_ORGANIZATION = True -SENTRY_OPTIONS["system.event-retention-days"] = env('SENTRY_EVENT_RETENTION_DAYS') or 90 +SENTRY_OPTIONS["system.event-retention-days"] = int(env('SENTRY_EVENT_RETENTION_DAYS', '90')) ######### # Redis #