On 02/17/2011 05:45 PM, Pieter Hintjens wrote: > On Thu, Feb 17, 2011 at 5:29 PM, Martin Sustrik<[email protected]> wrote: > >> One more thing I've noticed: The identities won't be part of most log >> records, so identity should not be part of log() prototype. Instead it >> should be formatted and placed into the log message by session.cpp. > > That was the first design but the same would need to go into xrep.cpp, > and it's ugly to duplicate this code. Like I said, it needs some > rework, that formatting should go in some other method perhaps.
Ok. I've changed log() function to work like printf(), i.e. it takes const char* + variable argument list. Applied to master. Feel free to add identity formatting code to ctx_t::log(). Martin _______________________________________________ zeromq-dev mailing list [email protected] http://lists.zeromq.org/mailman/listinfo/zeromq-dev
