-
Notifications
You must be signed in to change notification settings - Fork 38
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
create_kafka_client leads to: undefined method `formatter=' for #<Logging::Logger:0x000055aa7dcb8ae0> (NoMethodError) #111
Comments
Snooping around notesHm, https://ruby-doc.org/stdlib-2.6.2/libdoc/logger/rdoc/Logger.html#top
|
It is: |
@mensfeld |
This is actually more of an issue with ruby-kafka - this is my fault since a PR I wrote which was merged seems to be causing some of these crashes. We'll likely be pulling that out and trying it from a different perspective. |
We could add |
Any updates? I just work around this issue by disabling In
|
There are a couple of workarounds. Another one is to monkey-patch the logging logger so it actually conforms to the
You can also manually configure Phobos with a custom logger:
The monkey patch is included in this PR: #112 and a full fix is merged into ruby-kafka but not released yet. |
Can we create a new issue to track removing the monkey patch? We can make the monkey patch an optional thing Phobos users can opt in to. |
Sure, I can make an issue to remove it once RubyKafka does the next release. Honestly the monkey patch is incredibly benign (it just defines a couple of no-op methods). |
@dorner have you reproduced this issue? And verified #112 solves this issue? Would it be possible for @peco8 and/or @olleolleolle to verify that the branch |
@mriska Perhaps you can verify the solving of this? (Thanks for asking, but I no longer can check.) |
@klippx it's easy to confirm the fix - if you run |
I don't think the patch #112 resolves zendesk/ruby-kafka#732 Should we make |
We can't do that unfortunately. I've added one more patch to RubyKafka - here's hoping it will fix it for good and all. zendesk/ruby-kafka#762 |
This Issue is about compatibility re: what is passed into ruby-kafka:
Originally posted by @olleolleolle in #110 (comment)
The text was updated successfully, but these errors were encountered: