discourse/lib/demon
Alan Guo Xiang Tan 9fdcdcf58d
DEV: Log error encountered when reopening sidekiq logs (#27411)
We are seeing the following error in our logs when Sidekiq is sent a
`USR1` signal in production when logrotate happens:

```
log writing failed. stream closed in another thread
Error encountered while starting Sidekiq: can't be called from trap context\n/var/www/discourse/vendor/bundle/ruby/3.3.0/gems/unicorn-6.1.0/lib/unicorn/util.rb:71:in `reopen'
```

I'm not quite sure where the error is triggered from so I'm improving
the way we log errors.
2024-06-11 12:29:48 +08:00
..
base.rb DEV: Log Unicorn worker timeout backtraces to `Rails.logger` (#27257) 2024-06-03 12:51:12 +08:00
email_sync.rb DEV: Log Unicorn worker timeout backtraces to `Rails.logger` (#27257) 2024-06-03 12:51:12 +08:00
rails_autospec.rb DEV: Apply syntax_tree formatting to `lib/*` 2023-01-09 12:10:19 +00:00
sidekiq.rb DEV: Log error encountered when reopening sidekiq logs (#27411) 2024-06-11 12:29:48 +08:00