Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStan Hu <stanhu@gmail.com>2018-08-24 22:58:50 +0300
committerStan Hu <stanhu@gmail.com>2018-08-30 20:58:31 +0300
commite850d4ea6c3d925f8a55c247183f9accc38ece3f (patch)
tree96ab9de87ca60e7031d398643bc6be5516ea7901 /lib/gitlab/import
parentf981d4febbbb5103262f4daa858236d9c4ed9d67 (diff)
Add JSON logging for Bitbucket Server importer
Adds an importer.log so that it's easier to track what's happening with the import.
Diffstat (limited to 'lib/gitlab/import')
-rw-r--r--lib/gitlab/import/logger.rb9
1 files changed, 9 insertions, 0 deletions
diff --git a/lib/gitlab/import/logger.rb b/lib/gitlab/import/logger.rb
new file mode 100644
index 00000000000..8414954d141
--- /dev/null
+++ b/lib/gitlab/import/logger.rb
@@ -0,0 +1,9 @@
+module Gitlab
+ module Import
+ class Logger < ::Gitlab::JsonLogger
+ def self.file_name_noext
+ 'importer'
+ end
+ end
+ end
+end