Skip to content

Commit 97ec6e3

Browse files
pbe-axelorsolidnerd
authored andcommitted
Set Sidekiq default log format to json
This follow gitlab default value. See https://gitlab.com/gitlab-org/gitlab-foss/merge_requests/32842 Signed-off-by: Pierre Belloy <p.belloy@axelor.com>
1 parent eadd27c commit 97ec6e3

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -922,7 +922,7 @@ Below is the complete list of available options that can be used to customize yo
922922
| `SIDEKIQ_CONCURRENCY` | The number of concurrent sidekiq jobs to run. Defaults to `25` |
923923
| `SIDEKIQ_SHUTDOWN_TIMEOUT` | Timeout for sidekiq shutdown. Defaults to `4` |
924924
| `SIDEKIQ_MEMORY_KILLER_MAX_RSS` | Non-zero value enables the SidekiqMemoryKiller. Defaults to `1000000`. For additional options refer [Configuring the MemoryKiller](http://doc.gitlab.com/ce/operations/sidekiq_memory_killer.html) |
925-
| `GITLAB_SIDEKIQ_LOG_FORMAT` | Sidekiq log format that will be used. Defaults to `default` |
925+
| `GITLAB_SIDEKIQ_LOG_FORMAT` | Sidekiq log format that will be used. Defaults to `json` |
926926
| `DB_ADAPTER` | The database type. Currently only postgresql is supported. Over 12.1 postgres force. Possible values: `postgresql`. Defaults to `postgresql`. |
927927
| `DB_ENCODING` | The database encoding. For `DB_ADAPTER` values `postresql` this parameter defaults and `utf8` respectively. |
928928
| `DB_HOST` | The database server hostname. Defaults to `localhost`. |

assets/runtime/config/gitlabhq/gitlab.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -271,7 +271,7 @@ production: &base
271271

272272
## Sidekiq
273273
sidekiq:
274-
log_format: {{GITLAB_SIDEKIQ_LOG_FORMAT}} # (json is also supported)
274+
log_format: {{GITLAB_SIDEKIQ_LOG_FORMAT}} # (default is the original format)
275275

276276
## Auxiliary jobs
277277
# Periodically executed jobs, to self-heal GitLab, do external synchronizations, etc.

assets/runtime/env-defaults

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ REDIS_DB_NUMBER=${REDIS_DB_NUMBER:-0}
6060
SIDEKIQ_SHUTDOWN_TIMEOUT=${SIDEKIQ_SHUTDOWN_TIMEOUT:-4}
6161
SIDEKIQ_CONCURRENCY=${SIDEKIQ_CONCURRENCY:-25}
6262
SIDEKIQ_MEMORY_KILLER_MAX_RSS=${SIDEKIQ_MEMORY_KILLER_MAX_RSS:-1000000}
63-
GITLAB_SIDEKIQ_LOG_FORMAT=${GITLAB_SIDEKIQ_LOG_FORMAT:-default}
63+
GITLAB_SIDEKIQ_LOG_FORMAT=${GITLAB_SIDEKIQ_LOG_FORMAT:-json}
6464

6565
## UNICORN
6666
UNICORN_WORKERS=${UNICORN_WORKERS:-3}

0 commit comments

Comments
 (0)