[Sheepdog] [PATCH 1/2] sheep: put init_store() in the proper place

MORITA Kazutaka morita.kazutaka at lab.ntt.co.jp
Tue Sep 13 01:44:04 CEST 2011


At Sun, 11 Sep 2011 01:26:04 +0800,
Liu Yuan wrote:
> 
> From: Liu Yuan <tailai.ly at taobao.com>
> 
> init_store() calls init_epoch_path(), which relys on the log utility
> to do the logging. Howevery, log_init() is called after init_store().
> So if we enable debug mode, it will leak some of the debug information
> on standard output that otherwise is expected in the log file.
> 
> This patch makes logger behave itself.
> 
> Signed-off-by: Liu Yuan <tailai.ly at taobao.com>
> ---
>  sheep/sheep.c |    8 ++++----
>  1 files changed, 4 insertions(+), 4 deletions(-)

Thanks!  Applied these both.

Kazutaka



More information about the sheepdog mailing list