Instead of replacing the Rails logger in specs, we can instead use `#broadcast_to` which has been introduced in Rails 7.
Automation (previously known as discourse-automation) is now a core plugin.