summaryrefslogtreecommitdiff
path: root/lib/gitlab_config.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/gitlab_config.rb')
-rw-r--r--lib/gitlab_config.rb12
1 files changed, 12 insertions, 0 deletions
diff --git a/lib/gitlab_config.rb b/lib/gitlab_config.rb
index ede554d..9dc5c66 100644
--- a/lib/gitlab_config.rb
+++ b/lib/gitlab_config.rb
@@ -31,6 +31,18 @@ class GitlabConfig
redis['namespace'] || 'resque:gitlab'
end
+ def log_file
+ @config['log_file'] ||= File.join(ROOT_PATH, 'gitlab-shell.log')
+ end
+
+ def log_level
+ @config['log_level'] ||= 'INFO'
+ end
+
+ def audit_usernames
+ @config['audit_usernames'] ||= false
+ end
+
# Build redis command to write update event in gitlab queue
def redis_command
if redis.empty?