Skip to content
Snippets Groups Projects
Commit 20923257 authored by Stan Hu's avatar Stan Hu
Browse files

Add more logging before a project is destroyed

This adds a simple log message but also allows EE to insert database
events within the transaction (https://gitlab.com/gitlab-org/gitlab-ee/merge_requests/6059/diffs).
parent c7dfbb99
No related branches found
No related tags found
1 merge request!10495Merge Requests - Assignee
Loading
Loading
@@ -135,6 +135,7 @@ module Projects
raise_error('Failed to remove some tags in project container registry. Please try again or contact administrator.')
end
 
log_destroy_event
trash_repositories!
 
# Rails attempts to load all related records into memory before
Loading
Loading
@@ -148,6 +149,10 @@ module Projects
end
end
 
def log_destroy_event
log_info("Attempting to destroy #{project.full_path} (#{project.id})")
end
##
# This method makes sure that we correctly remove registry tags
# for legacy image repository (when repository path equals project path).
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment