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
64919745
Commit
64919745
authored
Dec 01, 2014
by
Jacob Vosmaer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Disable Sidekiq arguments logging by default
parent
30e28a7e
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
19 additions
and
1 deletion
+19
-1
CHANGELOG
CHANGELOG
+3
-0
config/initializers/4_sidekiq.rb
config/initializers/4_sidekiq.rb
+1
-1
doc/development/README.md
doc/development/README.md
+1
-0
doc/sidekiq_debugging.md
doc/sidekiq_debugging.md
+14
-0
No files found.
CHANGELOG
View file @
64919745
...
...
@@ -15,6 +15,9 @@ v 7.6.0
-
-
v 7.5.2
- Don't log Sidekiq arguments by default
v 7.5.0
- API: Add support for Hipchat (Kevin Houdebert)
- Add time zone configuration in gitlab.yml (Sullivan Senechal)
...
...
config/initializers/4_sidekiq.rb
View file @
64919745
...
...
@@ -14,7 +14,7 @@ Sidekiq.configure_server do |config|
}
config
.
server_middleware
do
|
chain
|
chain
.
add
Gitlab
::
SidekiqMiddleware
::
ArgumentsLogger
chain
.
add
Gitlab
::
SidekiqMiddleware
::
ArgumentsLogger
if
ENV
[
'SIDEKIQ_LOG_ARGUMENTS'
]
chain
.
add
Gitlab
::
SidekiqMiddleware
::
MemoryKiller
if
ENV
[
'SIDEKIQ_MAX_RSS'
]
end
end
...
...
doc/development/README.md
View file @
64919745
...
...
@@ -4,3 +4,4 @@
-
[
Shell commands
](
shell_commands.md
)
in the GitLab codebase
-
[
Rake tasks
](
rake_tasks.md
)
for development
-
[
CI setup
](
ci_setup.md
)
for testing GitLab
-
[
Sidekiq debugging
](
sidekiq_debugging.md
)
doc/sidekiq_debugging.md
0 → 100644
View file @
64919745
# Sidekiq debugging
## Log arguments to Sidekiq jobs
If you want to see what arguments are being passed to Sidekiq jobs you can set
the SIDEKIQ_LOG_ARGUMENTS environment variable.
```
SIDEKIQ_LOG_ARGUMENTS=1 bundle exec foreman start
```
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).
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