we had to use write for IO objects/objects that do not have add. Write
expects the full line(with newline) and add expects only content -> remove
trailing newline (sub \n$ would be nicer but who cares... :D )


On Thu, Jul 18, 2013 at 5:38 PM, Steven Davidovitz <notifications@github.com
> wrote:

> In lib/logcast/broadcaster.rb:
>
> >    end
> >
> >    # Rails 2
> >    def write(msg)
> >      self << msg
> > +    subscribers.each { |subscriber| subscriber.add(level, msg.rstrip, progname) }
>
> This still works? I feel like there was a reason we had to check for
> #write.
> rstrip because of add?
>
> —
> Reply to this email directly or view it on GitHub<https://github.com/zendesk/logcast/pull/2/files#r5283577>
> .
>