Skip to content
This repository has been archived by the owner on May 17, 2023. It is now read-only.

undefined method `log_class_name=' for RTP::Logger:Class #25

Open
tetherit opened this issue Oct 23, 2014 · 3 comments
Open

undefined method `log_class_name=' for RTP::Logger:Class #25

tetherit opened this issue Oct 23, 2014 · 3 comments

Comments

@tetherit
Copy link

Ever since I version bumped to the latest version of rtp and rtsp, I'm getting:

undefined method `log_class_name=' for RTP::Logger:Class
/home/deployer/asd/shared/bundle/ruby/2.1.0/gems/rtp-0.1.5/lib/rtp/receiver.rb:5:in `require_relative'
/home/deployer/asd/shared/bundle/ruby/2.1.0/gems/rtp-0.1.5/lib/rtp/receiver.rb:5:in `<top (required)>'
/home/deployer/asd/shared/bundle/ruby/2.1.0/gems/rtsp-0.4.5/lib/rtsp/client.rb:4:in `require'
/home/deployer/asd/shared/bundle/ruby/2.1.0/gems/rtsp-0.4.5/lib/rtsp/client.rb:4:in `<top (required)>'

All I have to do to trigger this error is:

require 'rtsp/client'

Any ideas?

@AndrewBelt
Copy link

Same here. In addition, using the simple example in the README in Ruby 2.2.3 yields the same issue.

require 'rtsp'
client = RTSP::Client.new "rtsp://64.202.98.91/sa.sdp"

Looking at the source, I don't see how any of the other files can be loaded at all. Did a recent committer purposely kill this project?

@turboladen
Copy link
Owner

I believe this is related to my updating the log_switch gem to 1.0.0, but rtsp not being greedy enough with its dependency declarations. As you can probably tell from the commit history, I haven't used this gem in quite some time and have been the sole maintainer. PRs are welcome, especially since I no longer have access to any RTSP devices for testing.

@dblommesteijn
Copy link
Contributor

Adding gem 'log_switch', '~> 0.4.0' to your project's Gemfile will lock versions below 1.0.0. This is a workaround and needs a proper fix.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants