diff options
author | Zeger-Jan van de Weg <git@zjvandeweg.nl> | 2018-04-25 18:25:16 +0300 |
---|---|---|
committer | Zeger-Jan van de Weg <git@zjvandeweg.nl> | 2018-04-26 14:44:28 +0300 |
commit | 90db3e5add7ee93e3b88633cad01371442a0e733 (patch) | |
tree | e93d4881ac371e61af1a0e173a4f49f43d475427 /config.toml.example | |
parent | 221364d0506d9bad9705dcb10c34deb9a7e69c79 (diff) |
Allow configuration of log levels
Log level cannot be set for Gitaly, which makes it very verbose in
production. This is not a problem, but in a development environment it
might be. Especially when other applications log to STDOUT too, details
get lost.
Closes https://gitlab.com/gitlab-org/gitaly/issues/1156
Diffstat (limited to 'config.toml.example')
-rw-r--r-- | config.toml.example | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/config.toml.example b/config.toml.example index 76b708c1a..b47ce94eb 100644 --- a/config.toml.example +++ b/config.toml.example @@ -11,7 +11,6 @@ bin_dir = "/home/git/gitaly" # # Optional: export metrics via Prometheus # prometheus_listen_addr = "localhost:9236" -# # # Git executable settings # [git] @@ -31,6 +30,11 @@ path = "/home/git/repositories" # # You can optionally configure Gitaly to output JSON-formatted log messages to stdout # [logging] # format = "json" +# # Optional: Set log level to only log entries with that severity or above +# # One of, in order: debug, info, warn, errror, fatal, panic +# # Defaults to "info" +# level = "warn" +# # # Additionally exceptions from the Go server can be reported to Sentry # sentry_dsn = "https://<key>:<secret>@sentry.io/<project>" # # Exceptions from gitaly-ruby can also be reported to Sentry @@ -46,10 +50,10 @@ dir = "/home/git/gitaly/ruby" # # Gitaly-ruby resident set size (RSS) that triggers a memory restart (bytes) # max_rss = 300000000 -# +# # # Grace period before a gitaly-ruby process is forcibly terminated after exceeding max_rss (seconds) # graceful_restart_timeout = "10m" -# +# # # Time that gitaly-ruby memory must remain high before a restart (seconds) # restart_delay = "5m" |