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:
commit
059a328117
1 changed files with 5 additions and 0 deletions
|
@ -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).
|
||||
|
|
Loading…
Reference in a new issue