2
0

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
This commit is contained in:
Simon Golms 2020-01-24 19:04:39 +01:00 committed by Burak Yigit Kaya
parent 1748073324
commit 73bf3f5ab4

View File

@ -29,7 +29,7 @@ SENTRY_USE_BIG_INTS = True
# and thus various UI optimizations should be enabled. # and thus various UI optimizations should be enabled.
SENTRY_SINGLE_ORGANIZATION = True 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 # # Redis #