[sheepdog] [PATCH RFC 2/3] logger: json format for logging

Hitoshi Mitake mitake.hitoshi at gmail.com
Tue Jan 29 06:57:17 CET 2013


At Tue, 29 Jan 2013 13:30:49 +0800,
Liu Yuan wrote:
> 
> On 01/28/2013 07:15 PM, Hitoshi Mitake wrote:
> > char str[MAX_MSG_SIZE * 2];
> 
> why * 2? Please explain it in the source code.
> 

(mitake.hitoshi at gmail.com is an alternative email address of
h.mitake at gmail.com)

Sorry, I should write a comment on this. My intention of this * 2 is
escaping double quoation in log messages for JSON.

I'll send the v2 later.

Thanks,
Hitoshi



More information about the sheepdog mailing list