summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobert Speicher <robert@gitlab.com>2016-11-24 07:00:40 +0000
committerRobert Speicher <robert@gitlab.com>2016-11-24 07:00:40 +0000
commit3943e632103271b3683e0cc355f0fef4c9452491 (patch)
tree46a9e70cee7e590793ef791ba34d291ad3fe0df6
parenta7a9db803b983659e8804e07aee89c935473cc41 (diff)
parent4123a0ff75369e28a4722b087ef4243f5e521d52 (diff)
downloadgitlab-ce-3943e632103271b3683e0cc355f0fef4c9452491.tar.gz
Merge branch 'mrchrisw/add-namespace-logging' into 'master'
Log mv_namespace parameters [ci skip] See merge request !7729
-rw-r--r--app/models/namespace.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/app/models/namespace.rb b/app/models/namespace.rb
index 99da26a89fb..891dffac648 100644
--- a/app/models/namespace.rb
+++ b/app/models/namespace.rb
@@ -104,6 +104,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')