Proper logging for policy violation errors