From 1e91142e38775b86fe38eb6c0f2af21729e968da Mon Sep 17 00:00:00 2001 From: Tim Abbott Date: Wed, 2 Jan 2013 13:37:20 -0500 Subject: [PATCH] zmirror: Fix use of print rather than logging.foo in send_zephyr. (imported from commit 7188f5364a864f2f144fb630d7a8c85d69219c42) --- bots/zephyr_mirror_backend.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/bots/zephyr_mirror_backend.py b/bots/zephyr_mirror_backend.py index 41a74b3..e6ded0f 100755 --- a/bots/zephyr_mirror_backend.py +++ b/bots/zephyr_mirror_backend.py @@ -423,15 +423,15 @@ def send_zephyr(zwrite_args, content): stdout=subprocess.PIPE, stderr=subprocess.PIPE) stdout, stderr = p.communicate(input=content.encode("utf-8")) if p.returncode: - print "zwrite command '%s' failed with return code %d:" % ( - " ".join(zwrite_args), p.returncode,) + logging.error("zwrite command '%s' failed with return code %d:" % ( + " ".join(zwrite_args), p.returncode,)) if stdout: - print stdout + logging.info("stdout: " + stdout) elif stderr: - print "zwrite command '%s' printed the following warning:" % ( - " ".join(zwrite_args),) + logging.warning("zwrite command '%s' printed the following warning:" % ( + " ".join(zwrite_args),)) if stderr: - print stderr + logging.warning("stderr: " + stderr) return (p.returncode, stderr) def send_authed_zephyr(zwrite_args, content):