Merge branch 'sh-log-destroy-attempt' into 'master'

Add more logging before a project is destroyed

See merge request gitlab-org/gitlab-ce!19602
This commit is contained in:
Robert Speicher 2018-06-08 21:32:37 +00:00
commit 059a328117
1 changed files with 5 additions and 0 deletions

View File

@ -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
@ -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).