Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update check_sentryio_limits.py #294

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions src/check_sentryio_limits.py
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ def merge_dsns(results: List[dict], teams: List[dict]) -> None:
exit = 1
print(f"WARNING: {team['summed_events']} "
f"events are configured, but {args.per_team_limit} "
f"allowed for team: {team['slug']}")
f"allowed for team: {team['slug']} per day")

# Check if organization wide limit is reached
if args.organization_limit:
Expand All @@ -172,7 +172,7 @@ def merge_dsns(results: List[dict], teams: List[dict]) -> None:
exit = 1
print(f"WARNING: {organization['summed_events']} events are "
f"configured, but {args.organization_limit} allowed in "
"total")
"total per day")
# If team limit is hit but organization limit is not
elif exit == 1:
print(f"{organization['summed_events']} events are configured "
Expand All @@ -181,7 +181,7 @@ def merge_dsns(results: List[dict], teams: List[dict]) -> None:
# If neither team nor organization limit is hit
if exit == 0:
print(f"OK: {organization['summed_events']} "
"events are configured in total")
"events are configured per day in total")

sys.exit(exit)

Expand Down