summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.gitignore1
-rw-r--r--config.yml.example5
-rw-r--r--lib/gitlab_config.rb2
3 files changed, 7 insertions, 1 deletions
diff --git a/.gitignore b/.gitignore
index 6f536e7..0f0683e 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,2 +1,3 @@
config.yml
tmp/*
+*.log
diff --git a/config.yml.example b/config.yml.example
index 4bffe14..5bc866d 100644
--- a/config.yml.example
+++ b/config.yml.example
@@ -24,3 +24,8 @@ redis:
# socket: /tmp/redis.socket # Only define this if you want to use sockets
namespace: resque:gitlab
+# Log file.
+log_file: "/home/git/gitlab-shell/gitlab-shell.log"
+
+# Log level. INFO by default
+log_level: INFO
diff --git a/lib/gitlab_config.rb b/lib/gitlab_config.rb
index 5b341a9..2bc2b50 100644
--- a/lib/gitlab_config.rb
+++ b/lib/gitlab_config.rb
@@ -32,7 +32,7 @@ class GitlabConfig
end
def log_file
- @config['log_file'] ||= File.join(ROOT_PATH, 'log', 'gitlab_shell.log')
+ @config['log_file'] ||= File.join(ROOT_PATH, 'gitlab-shell.log')
end
def log_level