Commit 059a3281 authored by Robert Speicher's avatar Robert Speicher

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

Add more logging before a project is destroyed

See merge request gitlab-org/gitlab-ce!19602
parents 27045ce5 20923257
...@@ -135,6 +135,7 @@ module Projects ...@@ -135,6 +135,7 @@ module Projects
raise_error('Failed to remove some tags in project container registry. Please try again or contact administrator.') raise_error('Failed to remove some tags in project container registry. Please try again or contact administrator.')
end end
log_destroy_event
trash_repositories! trash_repositories!
# Rails attempts to load all related records into memory before # Rails attempts to load all related records into memory before
...@@ -148,6 +149,10 @@ module Projects ...@@ -148,6 +149,10 @@ module Projects
end end
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 # This method makes sure that we correctly remove registry tags
# for legacy image repository (when repository path equals project path). # for legacy image repository (when repository path equals project path).
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment