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:
parent
1748073324
commit
73bf3f5ab4
@ -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 #
|
||||
|
Reference in New Issue
Block a user