Closed supairish closed 1 year ago
This commit will disable the automatic logger replacement, since Sidekiq 7 is not backward compatible. https://github.com/reidmorrison/rails_semantic_logger/commit/a64c48009f837ca875a451206e647ccba94cd0dd
Going to leave the issue open to determine we need to move replacing Sidekiq logging into a documentation change, or if there is some way to automatically replace the logger as it does today for Sidekiq v6.
Published rails_semantic_logger (4.11.0) to check for Sidekiq upto v6.
This discussion covers how to configure Sidekiq logging with v7 now: https://github.com/reidmorrison/semantic_logger/discussions/246
Hello!
Environment
Expected Behavior
I should be able to override the default Sidekiq logger with a semantic logger
Actual Behavior
If you upgrade from Sidekiq 6.x to 7.x. Attempting to boot app will raise exception due to Sidekiq removing the global module setter "logger= "
Not 100% sure but it appears options like this will now have to go through a config block setup
Comment found here https://github.com/mperham/sidekiq/compare/v6.5.7...v7.0.0#diff-6985e251e1b3fe0ce1f47369a1ede593aab9b27757ac7ff6e16591bc0318b034R86
Logger moved to Sidekiq::Config https://github.com/mperham/sidekiq/compare/v6.5.7...v7.0.0#diff-6605d43f981434252c6bd19fecf05464aef2436da1225630105f7ff2c0265ab1R245