New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
undefined method `broadcast_to' #212
Comments
I also got that same error after upgrading. I don't think you are doing anything wrong. I suspect it is to do with this change: https://forum.devtalk.com/t/ruby-on-rails-v7-1-0-rc1-released/126133 I have uninstalled logster for now and hope there will be a fix soon. |
I wonder if people have moved on to some alternative to logster. The issue is still unresolved but doesn't seem to be generating much interest. Also the demo is down so perhaps that too is affected: |
Thanks for looking at this @Drenmi I've found a couple of issues in the rails repo that may be related: It is not exactly clear to me though what the solution would be. |
Thanks for the investigation so far, @etewiah! 🙏 Will continue looking into this. |
Do you know of any alternatives? |
I don't know of an alternative that is as easy and convenient as this. It is quite frustrating because I totally understand it is an open source project and no one is obliged to prioritise fixing it but I also don't know how to fix it myself ;( |
@etewiah This patch works for me. Not sure if it breaks anything but I am still seeing messages logged in the UI. config/initializers/logster_patch.rbmodule Logster
class DeferLogger
def broadcast_to(loggers)
puts "broadcasting to #{loggers}"
end
end
end |
@antarr , many thanks for that. I will give it a shot. |
I'm sure I'll be running into this one soon. I happened on this here as I've been having an issue where my logs are no longer going to stdout / stderr, and then I saw that Rails has this non-standard method on logs |
my temporary workaround # config/initializers/logster.rb
if Rails.logger.is_a?(Logster::Logger)
Rails.logger = ActiveSupport::BroadcastLogger.new(Rails.logger)
end |
we got to fix this seems so so so so trivial ... demo is broken due to my vps ... it auto deploys and at some point I stopped maintaining it ... will see if I can sort it out. |
The issue is now fixed (#226) 🙂 |
Hello,
I have
logster
andredis
installed in my Rails 7.1.1 app. When I start up my rails server I get the following errors;I have no idea what I'm doing wrong. Any hints?
The text was updated successfully, but these errors were encountered: