Skip to content
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

Add an option to a PULL/PUSH socket with ZeroMQ #97

Merged
merged 3 commits into from
Jan 29, 2014

Conversation

k4nar
Copy link
Contributor

@k4nar k4nar commented Jan 25, 2014

Hello,
This Pull Request adds a multi option to ZeroMQHandler and ZeroMQSubscriber in order to allow several handlers to write on the same channel. This option is really useful, as several independent processes can log on the same channel, and a single subscriber can listen to all of them.

I could have done it in my application by subclassing the handler and the subscriber (as it has been done before: https://github.com/zacharyvoase/logbook-zmqpush), but I think that this is a feature that could benefit to a lot of people, as logging via ZMQ really takes its sense when used with several processes, not just two.

The code could be simplified a little bit if #70 was merged, but it's not a big deal.

I'm using this code since a week with 5-6 processes writing a lot of debug simultaneously and it works fine.

@vmalloc
Copy link
Collaborator

vmalloc commented Jan 26, 2014

The tests seem to be failing for this PR...

@k4nar
Copy link
Contributor Author

k4nar commented Jan 26, 2014

It seems to be failing on test_redis_handler for all the builds. It says it can't connect to redis. I don't think this has anything to do with my changes :) .

@vmalloc
Copy link
Collaborator

vmalloc commented Jan 26, 2014

Ok. I'll look into it. —
Rotem

On Sun, Jan 26, 2014 at 4:02 PM, Yannick PÉROUX notifications@github.com
wrote:

It seems to be failing on test_redis_handler for all the builds. It says it can't connect to redis. I don't think this has anything to do with my changes :) .

Reply to this email directly or view it on GitHub:
#97 (comment)

@vmalloc
Copy link
Collaborator

vmalloc commented Jan 29, 2014

Ok, so I fixed the travis dependency issue. Can you rebase and push again so that the tests can run on the actual PR?

Thanks and sorry for the mess...

@k4nar
Copy link
Contributor Author

k4nar commented Jan 29, 2014

Ok, that's done.

vmalloc added a commit that referenced this pull request Jan 29, 2014
Add an option to a PULL/PUSH socket with ZeroMQ
@vmalloc vmalloc merged commit a2cd7ba into getlogbook:master Jan 29, 2014
@vmalloc
Copy link
Collaborator

vmalloc commented Jan 29, 2014

Thanks!

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

Successfully merging this pull request may close these issues.

None yet

2 participants