Reverted print statement to logger

This commit is contained in:
eeintech 2022-02-07 15:39:06 -05:00
parent ef70e665bb
commit fd63fcde43

View File

@ -246,7 +246,7 @@ class RuleSet(models.Model):
# Print message instead of throwing an error
name = getattr(user, 'name', user.pk)
print(f"User '{name}' failed permission check for {table}.{permission}")
logger.info(f"User '{name}' failed permission check for {table}.{permission}")
return False