Skip to content

Commit 73bf3f5

Browse files
SimonGolmsBYK
authored andcommitted
fix(config): parse env variable as int (getsentry#359)
- parse SENTRY_EVENT_RETENTION_DAYS as integer in case it is defined as a string like in kubernetes
1 parent 1748073 commit 73bf3f5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sentry/sentry.conf.example.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
# and thus various UI optimizations should be enabled.
3030
SENTRY_SINGLE_ORGANIZATION = True
3131

32-
SENTRY_OPTIONS["system.event-retention-days"] = env('SENTRY_EVENT_RETENTION_DAYS') or 90
32+
SENTRY_OPTIONS["system.event-retention-days"] = int(env('SENTRY_EVENT_RETENTION_DAYS', '90'))
3333

3434
#########
3535
# Redis #

0 commit comments

Comments
 (0)