BigW Consortium Gitlab
Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gitlab-ce
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Forest Godfrey
gitlab-ce
Commits
03ae6b89
Commit
03ae6b89
authored
Jul 03, 2014
by
Jacob Vosmaer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Log Sidekiq arguments
parent
00c67238
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
15 additions
and
0 deletions
+15
-0
CHANGELOG
CHANGELOG
+1
-0
4_sidekiq.rb
config/initializers/4_sidekiq.rb
+4
-0
arguments_logger.rb
lib/gitlab/sidekiq_middleware/arguments_logger.rb
+10
-0
No files found.
CHANGELOG
View file @
03ae6b89
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 @
03ae6b89
...
...
@@ -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 @
03ae6b89
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