Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
heptapod
heptapod
Commits
94489f49dbd3
Commit
28151ba5
authored
Jul 28, 2014
by
Dmitriy Zaporozhets
Browse files
Merge branch 'log_sidekiq_payloads' into 'master'
Log sidekiq arguments See merge request !940
parents
44dc55716e86
b6638c23e79e
Changes
3
Hide whitespace changes
Inline
Side-by-side
CHANGELOG
View file @
94489f49
v 7.2.0
- Explore page
- Add project stars (Ciro Santilli)
- Log Sidekiq arguments
v 7.1.0
- Remove observers
...
...
config/initializers/4_sidekiq.rb
View file @
94489f49
...
...
@@ -12,6 +12,10 @@
url:
resque_url
,
namespace:
'resque:gitlab'
}
config
.
server_middleware
do
|
chain
|
chain
.
add
Gitlab
::
SidekiqMiddleware
::
ArgumentsLogger
end
end
Sidekiq
.
configure_client
do
|
config
|
...
...
lib/gitlab/sidekiq_middleware/arguments_logger.rb
0 → 100644
View file @
94489f49
module
Gitlab
module
SidekiqMiddleware
class
ArgumentsLogger
def
call
(
worker
,
job
,
queue
)
Sidekiq
.
logger
.
info
"arguments:
#{
job
[
'args'
]
}
"
yield
end
end
end
end
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