[Ocfs2-test-devel] [PATCH 2/7] o2tf: Fix printlog
Sunil Mushran
sunil.mushran at oracle.com
Wed Aug 19 18:21:04 PDT 2009
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')
--
1.6.0.4
More information about the Ocfs2-test-devel
mailing list