Skip to content

Commit

Permalink
DBP-830 Add flush
Browse files Browse the repository at this point in the history
  • Loading branch information
simoncolincap committed Aug 26, 2024
1 parent 09065e8 commit cd8fc4c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app/models/user.rb
Original file line number Diff line number Diff line change
Expand Up @@ -236,11 +236,12 @@ def self.disable_inactive_users
user.notify_admins_blocked_users_inactivity
Rails.logger.info "Blocked user: #{user.email}"
rescue StandardError => e
Rails.logger.info "Failed to block #{user.email}: #{e.message}"
Rails.logger.error "Failed to block #{user.email}: #{e.message}"
end
Rails.logger.info "Blocked #{size} inactive users."
else
Rails.logger.info 'No inactive users to block.'
end
Rails.logger.flush
end
end

0 comments on commit cd8fc4c

Please sign in to comment.