[Ocfs2-test-devel] [PATCH 2/7] o2tf: Fix printlog
tristan.ye
tristan.ye at oracle.com
Sun Aug 23 21:23:41 PDT 2009
SOB,
Tristan
Sunil Mushran Wrote:
> o2tf.printlog() was printing to the logfile as well as stdout.
> This patch silences the stdout print so as to reduce the clutter.
>
> Signed-off-by: Sunil Mushran <sunil.mushran at oracle.com>
> ---
> programs/python_common/o2tf.py | 1 -
> 1 files changed, 0 insertions(+), 1 deletions(-)
>
> diff --git a/programs/python_common/o2tf.py b/programs/python_common/o2tf.py
> index ab4374a..2cef569 100644
> --- a/programs/python_common/o2tf.py
> +++ b/programs/python_common/o2tf.py
> @@ -57,7 +57,6 @@ def printlog(message, logfile, prflag=0, prsep=''):
> fd.write(datetime+' '+hostname+' '+(prsep * prseplen)+'\n')
> #
> fd.write(datetime+' '+hostname+' '+message+'\n')
> - print '%s %s : %s ' % (datetime, hostname, message)
> #
> if prflag == 2 or prflag == 3:
> fd.write(datetime+' '+hostname+' '+(prsep * prseplen)+'\n')
>
More information about the Ocfs2-test-devel
mailing list