Comments (7)
My recommendation was more for production environment.
It is common to disable logging for test environment which is totally fine.
Perhaps you can configure logging based on which rails environment it is?
from sidekiq-unique-jobs.
Cool thanks. Is there a way to disable logging entirely with this gem?
from sidekiq-unique-jobs.
From the top of my head: no. It seems like a very nice feature to have.
Perhaps something like:
SidekiqUniqueJobs.configure do |config|
config.logger.level = :fatal
end
from sidekiq-unique-jobs.
That would work, or alternatively
config.logger = nil
from sidekiq-unique-jobs.
config.logger = Rails.env.test? ? nil : Sidekiq.logger
from sidekiq-unique-jobs.
I'm not even sure it works without a logger, try it first. Otherwise
config.logger = Rails.env.test? ? Logger.new(nil) : Sidekiq.logger
Should do the trick, I'll see if I can add a way to just silence logging also.
from sidekiq-unique-jobs.
Perfect, thanks
from sidekiq-unique-jobs.
Related Issues (20)
- concurrent-ruby has dropped support for TimerTask timeouts HOT 1
- concurrent-ruby 1.1.10 spikes volume of jobs HOT 8
- Ambiguity about `death_handers`
- DEPRECATION WARNING: default_worker_options is deprecated and will be removed from Sidekiq 7.0 (use default_job_options instead) (called from notify_agents at /Users/hackeron/Development/Tether/timeline/app/models/user.rb:303) HOT 3
- Reviwing: Failed jobs waiting to be retried are not considered when fetching uniqueness
- Unexpected behavior with until_and_while_executing HOT 4
- Unique Jobs Not Running with Version 7.1.26 HOT 12
- spammed by `Nothing to delete; exiting` during spec HOT 2
- Jobs are being allowed to run even though there is a lock HOT 8
- Locks can't be found in UI? HOT 6
- Incompatibility with Sidekiq 7 HOT 12
- Job executed twice when reaper runs
- Error "undefined method `redis_info' for Sidekiq:Module" on upgrade HOT 2
- Using rspec matcher and getting: `NameError: uninitialized constant SidekiqUniqueJobs::Lock::BaseLock::Validator`
- until and while executing with different arguments for client/server HOT 2
- Got often got Limit exceeded message in changelog HOT 6
- Unlock jobs when queue is deleted HOT 2
- Allow one running job but at most one job in the queue HOT 2
- while_executing jobs being dropped HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from sidekiq-unique-jobs.