2014-12-01 12:58:37 -05:00
|
|
|
# Sidekiq debugging
|
|
|
|
|
|
|
|
## Log arguments to Sidekiq jobs
|
|
|
|
|
|
|
|
If you want to see what arguments are being passed to Sidekiq jobs you can set
|
2018-09-06 12:52:18 -04:00
|
|
|
the `SIDEKIQ_LOG_ARGUMENTS` [environment variable](https://docs.gitlab.com/omnibus/settings/environment-variables.html) to `1` (true).
|
2016-12-28 06:22:21 -05:00
|
|
|
|
|
|
|
Example:
|
2014-12-01 12:58:37 -05:00
|
|
|
|
|
|
|
```
|
2016-12-28 06:22:21 -05:00
|
|
|
gitlab_rails['env'] = {"SIDEKIQ_LOG_ARGUMENTS" => "1"}
|
2014-12-01 12:58:37 -05:00
|
|
|
```
|
|
|
|
|
2019-01-18 11:21:38 -05:00
|
|
|
Please note: It is not recommend to enable this setting in production because some
|
2016-12-28 06:22:21 -05:00
|
|
|
Sidekiq jobs (such as sending a password reset email) take secret arguments (for
|
2019-01-18 11:21:38 -05:00
|
|
|
example the password reset token).
|
|
|
|
|
|
|
|
When using [Sidekiq JSON logging](../administration/logs.md#sidekiqlog),
|
|
|
|
arguments logs are limited to a maximum size of 10 kilobytes of text;
|
|
|
|
any arguments after this limit will be discarded and replaced with a
|
|
|
|
single argument containing the string `"..."`.
|