Skip to content

Commit

Permalink
Merge pull request RedHatInsights#1128 from petracihalova/debug_logs_…
Browse files Browse the repository at this point in the history
…for_seeding

add logs to catch exception occurred during purge cache
  • Loading branch information
lpichler authored Jun 25, 2024
2 parents ebb2593 + 8297076 commit 3756478
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion rbac/management/management/commands/seeds.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,4 +53,8 @@ def handle(self, *args, **options):
group_seeding()
logger.info("*** Group seeding completed. ***\n")

purge_cache()
try:
purge_cache()
except Exception as e:
logger.error(f"An exception occurred during purge cache: {e}")
raise e

0 comments on commit 3756478

Please sign in to comment.