Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
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
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Boxiang Sun
gitlab-ce
Commits
2e76c604
Commit
2e76c604
authored
Oct 03, 2017
by
Jacob Vosmaer (GitLab)
Committed by
Rémy Coutable
Oct 03, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add grpc.log for Gitaly
parent
ae9dd4b5
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
19 additions
and
0 deletions
+19
-0
config/initializers/grpc.rb
config/initializers/grpc.rb
+11
-0
doc/administration/gitaly/index.md
doc/administration/gitaly/index.md
+8
-0
No files found.
config/initializers/grpc.rb
0 → 100644
View file @
2e76c604
require
'logger'
GRPC_LOGGER
=
Logger
.
new
(
Rails
.
root
.
join
(
'log/grpc.log'
))
GRPC_LOGGER
.
level
=
ENV
[
'GRPC_LOG_LEVEL'
].
presence
||
'WARN'
GRPC_LOGGER
.
progname
=
'GRPC'
module
GRPC
def
self
.
logger
GRPC_LOGGER
end
end
doc/administration/gitaly/index.md
View file @
2e76c604
...
@@ -32,6 +32,14 @@ prometheus_listen_addr = "localhost:9236"
...
@@ -32,6 +32,14 @@ prometheus_listen_addr = "localhost:9236"
Changes to
`/home/git/gitaly/config.toml`
are applied when you run
`service
Changes to
`/home/git/gitaly/config.toml`
are applied when you run
`service
gitlab restart`
.
gitlab restart`
.
## Client-side GRPC logs
Gitaly uses the
[
gRPC
](
https://grpc.io/
)
RPC framework. The Ruby gRPC
client has its own log file which may contain useful information when
you are seeing Gitaly errors. You can control the log level of the
gRPC client with the
`GRPC_LOG_LEVEL`
environment variable. The
default level is
`WARN`
.
## Running Gitaly on its own server
## Running Gitaly on its own server
> This is an optional way to deploy Gitaly which can benefit GitLab
> This is an optional way to deploy Gitaly which can benefit GitLab
...
...
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