Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'lib/gitlab/audit/auditor.rb')
-rw-r--r--lib/gitlab/audit/auditor.rb8
1 files changed, 3 insertions, 5 deletions
diff --git a/lib/gitlab/audit/auditor.rb b/lib/gitlab/audit/auditor.rb
index a59237fbb1f..a035b6face9 100644
--- a/lib/gitlab/audit/auditor.rb
+++ b/lib/gitlab/audit/auditor.rb
@@ -76,13 +76,11 @@ module Gitlab
@authentication_event = @context.fetch(:authentication_event, false)
@authentication_provider = @context[:authentication_provider]
- # TODO: Remove this code once we close https://gitlab.com/gitlab-org/gitlab/-/issues/367870
return if @is_audit_event_yaml_defined
- message = 'Logging audit events without an event type definition will be deprecated soon ' \
- '(https://docs.gitlab.com/ee/development/audit_event_guide/#event-type-definitions)'
-
- Gitlab::AppLogger.warn(message: message, event_type: @name)
+ raise StandardError, "Audit event type YML file is not defined for #{@name}. Please read " \
+ "https://docs.gitlab.com/ee/development/audit_event_guide/" \
+ "#how-to-instrument-new-audit-events for adding a new audit event"
end
def single_audit