1
0
Fork 0
mirror of https://github.com/mperham/sidekiq.git synced 2022-11-09 13:52:34 -05:00
Commit graph

14 commits

Author SHA1 Message Date
Mike Perham
6bd4eaffdc Bump standard, fix style issues 2020-03-17 13:38:48 -07:00
Mike Perham
daabec1c7b refactor log context to not require context functionality on the logger itself, #4296 2019-10-01 19:19:26 -07:00
Mike Perham
fd634c05fd rename method 2019-09-25 15:53:04 -07:00
fatkodima
7f68ba8838 Support job-specific log levels 2019-09-25 15:34:47 -07:00
fatkodima
c428383523 Support job tags 2019-09-23 13:00:59 -07:00
Bryan FRIMIN
32c55e3165 Use standardrb for source styling (#4114) 2019-04-01 09:20:41 -07:00
Mike Perham
022c63d86f Rework logger changes a bit
* logger_formatter -> log_format
* avoid touching global Sidekiq.logger in JobLogger
* rewrite tests for compactness and coverage
* hide banner in JSON
2018-12-29 07:54:05 -08:00
Andrew Babichev
3845832c20 JSON Logger Formatter (#4050)
* Check Config File Existence (#4054)

* Check config file existence

* Eager config file check

* Parse expanded path to default sidekiq.yml config file in Rails app

* Cleanup

* Add minitest-around

* Extract context from formatter

* Add JSON logger formatter

* Adjust job logger to handle elapsed time within context

* Add tid test

* Rename processor logger

* Enforce global state reset in logging tests

* Add warning about upcoming refactoring to Sidekiq::Logging

* Replace around hook with explicit stub inside test

It's implemented with fibers, which means Thread.current returns different values in JRuby.

* Fix typo

* Concise JSON formatter keys

* Add logger_formatter option

* Shift context from array of strings to hash

Allows more flexibly format context in the different formatters.

* Adjust warning message regarding context type change

* Add "Formatter" suffix to classes

* Fix CLI specs

* Replace Sidekiq::Logging with Sidekiq::Logger

* Namespace logger formatters

* Remove rails 4 appraisal
2018-12-28 15:05:51 -08:00
Mike Perham
aa9745e9b2 Switch elapsed time calcs to use monotonic clock, fixes #3999 2018-10-18 13:51:58 -07:00
Mike Perham
967f3f34bd Add missing preamble for @krzysiek1507, #3759 2018-03-15 09:00:53 -07:00
Mike Perham
2ed92600fa Missed a few 2018-02-17 14:09:28 -08:00
Ben Woosley
018283141a Rescue at the method level in JobLogger (#3464) 2017-05-08 12:50:36 -07:00
Mike Perham
5806792716 merge master 2017-03-16 11:42:02 -07:00
Mike Perham
701e06224c Rework job processing in light of Rails 5's Reloader (#3235)
* Rework job processing in light of Rails 5's Reloader, see #3221

* Ignore built gems

* Documentation, testing

* Add fallback for 'retry' value server-side, fixes #3234

* Fix job hash reporting in stats

* cleanup

* Add job for AJ testing

* Push jobs with invalid JSON immediately to Dead set, fixes #3296

* Break retry logic into global and local parts, fixes #3306

* fix heisentest
2017-01-17 14:58:08 -08:00