commit 89a10677ba996cead0facba8e71ab45a88f7bf91
Author: Radek Novacek <rnovacek(a)redhat.com>
Date: Fri Dec 9 15:29:14 2011 +0100
Don't print logs to stderr when not in debug mode
virt-who.py | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/virt-who.py b/virt-who.py
index 134274f..9fc545d 100644
--- a/virt-who.py
+++ b/virt-who.py
@@ -197,8 +197,8 @@ if __name__ == '__main__':
# Enable debugging output to be writen in /var/log
logger.setLevel(logging.DEBUG)
- # Print debugging output to stderr too
- logger.addHandler(logging.StreamHandler())
+ # Print debugging output to stderr too
+ logger.addHandler(logging.StreamHandler())
env = os.getenv("VIRTWHO_BACKGROUND", "0").strip().lower()
if env in ["1", "true"]:
Show replies by date