Ben Woosley
fb8fdc3687
Extract Processor#log_context to ease extending what's logged ( #3463 )
...
* Extract Processor#log_context to ease extending what's logged
This was previously exposed in JobLogger and Middleware::Server::Logging
but was inlined into Processor.
701e06224c
Useful, e.g. in this case:
https://github.com/mperham/sidekiq/issues/1786
* Move job hash context logic into Sidekiq::Logging
2017-05-10 11:56:36 -07:00
Mike Perham
72fe3289ea
Merge branch 'master' into frozen
2016-04-21 13:15:00 -07:00
nrakochy
01651bc405
Removed file system check and updated to generic File::NULL for Windows path error
2016-03-19 15:21:53 -05:00
nrakochy
451af05481
Fixed SystemCallError for Windows path
2016-03-19 10:29:47 -05:00
bakaneko
c23038b852
require 'fcntl'
2016-02-23 18:36:25 +09:00
Mike Perham
2c9f7662fc
Freeze all string literals in source, fixes #2741
...
Tests pass and smoke test works perfectly.
2015-12-31 15:33:35 -08:00
Mike Perham
607e63cb25
Dont log timestamp on Heroku, fixes #2343
2015-06-10 10:09:48 -07:00
grosser
a0baa23644
use context as stack
2014-12-30 14:02:33 -08:00
grosser
2d567ed340
fix done not logging when using with_context in a worker
2014-12-30 12:52:53 -08:00
Mike Perham
e6e95c6168
Include millis in the timestamp, #1789
2014-06-20 08:27:47 -07:00
Mike Perham
f81f09dee4
Refactor ProcessSet to yield a Sidekiq::Process
2014-05-13 20:33:20 -07:00
Mike Perham
03823ae13a
Dont explode on JRuby error, fixes #1653
2014-04-21 21:03:08 -07:00
Mike Perham
bf2c2990c2
Remove unused file, fix various warnings
2014-03-19 17:11:12 -07:00
Mike Perham
ea153afb87
Clean up log rotation code
2014-02-07 14:54:49 -08:00
Case Taintor
98e2aceaaa
USR2 will now reopen *all* log files (like Unicorn). Also, the logfile will be reopened using IO#reopen rather than creating a new Logger object, reducing the possibility of having a stale logger object
2014-02-07 16:27:35 -05:00
Mike Perham
f0dafa632a
Close old logger when rotating, fixes #1008
2013-06-18 13:44:19 -07:00
Thorsten Ball
88b997b122
Refactor Sidekiq::Logging and handling of --verbose in Sidekiq::CLI
2012-12-13 21:29:43 +01:00
Thorsten Ball
d2c2da6be9
Add option to write logs to a file
2012-12-13 21:29:41 +01:00
Mike Perham
8c9f960a68
Prefer Sidekiq.logger, inject message context into all working logging
2012-05-15 19:44:35 -07:00