From a63215519b236e550498e0bc256553ebf57fcfe1 Mon Sep 17 00:00:00 2001 From: Matthias Geier Date: Wed, 22 Jul 2015 17:09:12 +0200 Subject: wire example: use logging.warning() instead of print() --- examples/wire.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'examples') diff --git a/examples/wire.py b/examples/wire.py index 3c4edcb..6acdeb1 100755 --- a/examples/wire.py +++ b/examples/wire.py @@ -5,6 +5,7 @@ See https://www.assembla.com/spaces/portaudio/subversion/source/HEAD/portaudio/t """ import argparse +import logging parser = argparse.ArgumentParser(description=__doc__) parser.add_argument("-i", "--input-device", type=int, help="input device ID") @@ -37,7 +38,7 @@ try: input() if callback_status: - print(callback_status) + logging.warning(str(callback_status)) except BaseException as e: # This avoids printing the traceback, especially if Ctrl-C is used. raise SystemExit(str(e)) -- cgit v1.2.3