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
1e033c2e
Commit
1e033c2e
authored
Dec 01, 2014
by
Jacob Vosmaer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Disable Sidekiq arguments logging by default
Conflicts: config/initializers/4_sidekiq.rb
parent
36679b57
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
20 additions
and
1 deletion
+20
-1
CHANGELOG
CHANGELOG
+3
-0
config/initializers/4_sidekiq.rb
config/initializers/4_sidekiq.rb
+2
-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 @
1e033c2e
v 7.5.1
- Add missing timestamps to 'members' table
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 on gitlab.yml (Sullivan Senechal)
...
...
config/initializers/4_sidekiq.rb
View file @
1e033c2e
...
...
@@ -14,7 +14,8 @@ 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 @
1e033c2e
...
...
@@ -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 @
1e033c2e
# 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