[sheepdog] [PATCH] add INFO level operation logging on each node.

MORITA Kazutaka morita.kazutaka at lab.ntt.co.jp
Fri Jan 24 07:02:15 CET 2014


At Fri, 24 Jan 2014 12:53:15 +0900,
Matsuo Yoshinori wrote:
> 
> Wrapping dog command can also solve dog logging,
> but dog command may be called directory especially in the small cluster.
> And it's simpler that having a logging function in dog command
> than writing log on every wrapper scripts, isn't it?

What you guys have to do is only to create one wrapper.  E.g.

 1. Create ~/bin/dog as follows

    ==
    #!/bin/bash

    logger begin dog $*
    /usr/sbin/dog $*
    logger end dog $*
    ==

 2. Make users use ~/bin/dog instead of /usr/sbin/dog.  You can do it
    easily by changing your PATH order.

No need to change any other things at all.  I don't think logging in
dog is simpler than this.  Am I missing something?

Thanks,

Kazutaka



More information about the sheepdog mailing list