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
Jérome Perrin
gitlab-ce
Commits
28151ba5
Commit
28151ba5
authored
Jul 28, 2014
by
Dmitriy Zaporozhets
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'log_sidekiq_payloads' into 'master'
Log sidekiq arguments See merge request !940
parents
746b7e2d
03ae6b89
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
15 additions
and
0 deletions
+15
-0
CHANGELOG
CHANGELOG
+1
-0
config/initializers/4_sidekiq.rb
config/initializers/4_sidekiq.rb
+4
-0
lib/gitlab/sidekiq_middleware/arguments_logger.rb
lib/gitlab/sidekiq_middleware/arguments_logger.rb
+10
-0
No files found.
CHANGELOG
View file @
28151ba5
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 @
28151ba5
...
...
@@ -12,6 +12,10 @@ Sidekiq.configure_server do |config|
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 @
28151ba5
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