Logging of duplicit identities added

Signed-off-by: Martin Sustrik <sustrik@250bpm.com>
This commit is contained in:
Martin Sustrik
2011-02-18 14:15:10 +01:00
parent 1f536b2d38
commit 17e2ca71b4
5 changed files with 20 additions and 6 deletions

View File

@@ -18,6 +18,7 @@
*/
#include <string.h>
#include <stdarg.h>
#include "object.hpp"
#include "ctx.hpp"
@@ -151,9 +152,12 @@ void zmq::object_t::destroy_socket (socket_base_t *socket_)
ctx->destroy_socket (socket_);
}
void zmq::object_t::log (zmq_msg_t *msg_)
void zmq::object_t::log (const char *format_, ...)
{
ctx->log (msg_);
va_list args;
va_start (args, format_);
ctx->log (format_, args);
va_end (args);
}
zmq::io_thread_t *zmq::object_t::choose_io_thread (uint64_t affinity_)