diff --git a/fence/resources/audit/utils.py b/fence/resources/audit/utils.py index 6803d6d58..ffa0d36cd 100644 --- a/fence/resources/audit/utils.py +++ b/fence/resources/audit/utils.py @@ -77,13 +77,14 @@ def enable_audit_logging(f): This decorator should be added to any API endpoint for which we record audit logs. It should not be added to non-audited endpoints, so that performance is not impacted. - The audit decorator is only added if auditing is enabled, so that - performance is not impacted when auditing is disabled. + The `create_audit_log_for_request_decorator` decorator is only added + if auditing is enabled, so that performance is not impacted when auditing + is disabled. Possible improvement: pass a "category" argument to `is_audit_enabled`. /!\ This decorator is not enough to enable audit logging for an endpoint. Logic must be added to `create_audit_log_for_request()` and the audit - service might needed to be updated to handle new types of data. + service might need to be updated to handle new types of data. """ @wraps(f)