Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-shell
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Kirill Smelkov
gitlab-shell
Commits
cdbfbc9b
Commit
cdbfbc9b
authored
May 18, 2013
by
ash
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add logging-related keys to the example config. Use the same default for both.
parent
c1672b42
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
1 deletion
+7
-1
.gitignore
.gitignore
+1
-0
config.yml.example
config.yml.example
+5
-0
lib/gitlab_config.rb
lib/gitlab_config.rb
+1
-1
No files found.
.gitignore
View file @
cdbfbc9b
config.yml
config.yml
tmp/*
tmp/*
*.log
config.yml.example
View file @
cdbfbc9b
...
@@ -24,3 +24,8 @@ redis:
...
@@ -24,3 +24,8 @@ redis:
# socket: /tmp/redis.socket # Only define this if you want to use sockets
# socket: /tmp/redis.socket # Only define this if you want to use sockets
namespace: resque:gitlab
namespace: resque:gitlab
# Log file.
log_file: "/home/git/gitlab-shell/gitlab-shell.log"
# Log level. INFO by default
log_level: INFO
lib/gitlab_config.rb
View file @
cdbfbc9b
...
@@ -32,7 +32,7 @@ class GitlabConfig
...
@@ -32,7 +32,7 @@ class GitlabConfig
end
end
def
log_file
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
end
def
log_level
def
log_level
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment