Skip to content

Commit

Permalink
do not create security logs for failed school cache (#1244)
Browse files Browse the repository at this point in the history
  • Loading branch information
mwvolo authored May 6, 2024
1 parent 2c2586d commit 53d6db1
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions app/routines/update_user_contact_info.rb
Original file line number Diff line number Diff line change
Expand Up @@ -121,11 +121,6 @@ def call
user.grant_tutor_access = sf_contact.grant_tutor_access

if school.nil? && !sf_school.nil?
SecurityLog.create!(
user: user,
event_type: :attempted_to_add_school_not_cached_yet,
event_data: { school_id: sf_school.id }
)
users_without_cached_school += 1
Sentry.capture_message("User #{user.id} has a school that is in SF but not cached yet #{sf_school.id}")
else
Expand Down

0 comments on commit 53d6db1

Please sign in to comment.