diff options
author | Chris Wilson <chris@chrisjwilson.com> | 2016-11-24 13:36:15 +0800 |
---|---|---|
committer | Chris Wilson <chris@chrisjwilson.com> | 2016-11-24 13:36:15 +0800 |
commit | 4123a0ff75369e28a4722b087ef4243f5e521d52 (patch) | |
tree | 0e2339a15b17c60552348ede44b2ef0e702fe87c /app | |
parent | 9aded5c8d43cf113b03e2d8fd04a32c4b24af24d (diff) | |
download | gitlab-ce-4123a0ff75369e28a4722b087ef4243f5e521d52.tar.gz |
Log mv_namespace parametersmrchrisw/add-namespace-logging
Diffstat (limited to 'app')
-rw-r--r-- | app/models/namespace.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/app/models/namespace.rb b/app/models/namespace.rb index b67049f0f55..dfd1633707e 100644 --- a/app/models/namespace.rb +++ b/app/models/namespace.rb @@ -103,6 +103,8 @@ class Namespace < ActiveRecord::Base gitlab_shell.add_namespace(repository_storage_path, path_was) unless gitlab_shell.mv_namespace(repository_storage_path, path_was, path) + Rails.logger.error "Exception moving path #{repository_storage_path} from #{path_was} to #{path}" + # if we cannot move namespace directory we should rollback # db changes in order to prevent out of sync between db and fs raise Exception.new('namespace directory cannot be moved') |