Skip to content

Commit

Permalink
Log SA rule update on user
Browse files Browse the repository at this point in the history
  • Loading branch information
KHIT93 committed Oct 31, 2021
1 parent 6b867fb commit c533215
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/spamassassin/viewsets.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ def post_sync_rule_descriptions(self, request):
sa = RuleDescription()
sa.sync_files()
Setting.objects.update_or_create(key='sa.last_updated', defaults={'value':str(datetime.datetime.now())})
DataLogEntry.objects.log_create(None, actor=request.user, changes='SpamAssassin rule update completed')
DataLogEntry.objects.log_create(request.user, actor=request.user, changes='SpamAssassin rule update completed')
except Exception as e:
return Response({'message' : str(e)}, status=status.HTTP_500_INTERNAL_SERVER_ERROR)
return Response({}, status=status.HTTP_204_NO_CONTENT)
Expand Down

0 comments on commit c533215

Please sign in to comment.