diff options
author | James Lopez <james@gitlab.com> | 2019-09-04 17:56:27 +0300 |
---|---|---|
committer | James Lopez <james@gitlab.com> | 2019-09-04 17:56:27 +0300 |
commit | 39d52cfba232227fbec3ae99ddc0e782bad45645 (patch) | |
tree | 4dd04fc3b0441fdd0d8d3bd50bd38256e160e685 /app | |
parent | 12e0fee2e557b3f7e52744e778ebf0f28a8a600e (diff) | |
parent | b332caa4eb607073d62848c46a3fafbd660d18aa (diff) |
Merge branch 'osw-record-repo-push-events' into 'master'
Backport EE "Track repository pushes as audit events"
See merge request gitlab-org/gitlab-ce!32304
Diffstat (limited to 'app')
-rw-r--r-- | app/services/audit_event_service.rb | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/app/services/audit_event_service.rb b/app/services/audit_event_service.rb index 73f3408a240..22ade0b0658 100644 --- a/app/services/audit_event_service.rb +++ b/app/services/audit_event_service.rb @@ -21,6 +21,10 @@ class AuditEventService log_security_event_to_database end + def log_security_event_to_file + file_logger.info(base_payload.merge(formatted_details)) + end + private def base_payload @@ -39,10 +43,6 @@ class AuditEventService @details.merge(@details.slice(:from, :to).transform_values(&:to_s)) end - def log_security_event_to_file - file_logger.info(base_payload.merge(formatted_details)) - end - def log_security_event_to_database SecurityEvent.create(base_payload.merge(details: @details)) end |