[sheepdog] [PATCH] sheep, logger: select log formatter before log_init()

Liu Yuan namei.unix at gmail.com
Fri Feb 1 07:52:55 CET 2013


On 02/01/2013 02:41 PM, Hitoshi Mitake wrote:
> +	if (!log_format_selected)
> +		select_log_formatter("default");

I think log_format_selected isn't necessary. You can have one var
log_formatter = "default"; and point it to another user defined string
if '-F' is specified. Then call select_log_formatter unconditionally.

Thanks,
Yuan



More information about the sheepdog mailing list