commit 388b2ced129c495377b8c228ead8bd1d7b5b11ba
Author: Radek Novacek <rnovacek(a)redhat.com>
Date: Tue Sep 13 16:11:20 2011 +0200
Fix printing to stderr without -d option
virt-who.py | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/virt-who.py b/virt-who.py
index 5d1ba73..ddfc090 100644
--- a/virt-who.py
+++ b/virt-who.py
@@ -54,8 +54,9 @@ if __name__ == '__main__':
if options.debug:
# 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