debian-mirror-gitlab/doc/development/sidekiq_debugging.md

17 lines
544 B
Markdown
Raw Normal View History

2015-04-26 12:48:37 +05:30
# Sidekiq debugging
## Log arguments to Sidekiq jobs
If you want to see what arguments are being passed to Sidekiq jobs you can set
2017-08-17 22:00:37 +05:30
the `SIDEKIQ_LOG_ARGUMENTS` [environment variable]
(https://docs.gitlab.com/omnibus/settings/environment-variables.html) to `1` (true).
Example:
2015-04-26 12:48:37 +05:30
```
2017-08-17 22:00:37 +05:30
gitlab_rails['env'] = {"SIDEKIQ_LOG_ARGUMENTS" => "1"}
2015-04-26 12:48:37 +05:30
```
2017-08-17 22:00:37 +05:30
Please note: It is not recommend to enable this setting in production because some
Sidekiq jobs (such as sending a password reset email) take secret arguments (for
example the password reset token).