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
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
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
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 @
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