Repository :
http://git.fedorahosted.org/cgit/cura-tools.git
On branch : master
---------------------------------------------------------------
commit b521c2999c0080985fff2e6724012effffce5194
Author: Peter Hatina <phatina(a)redhat.com>
Date: Mon Dec 2 13:28:21 2013 +0100
fix detached streams log message
---------------------------------------------------------------
cli/lmi/shell/LMIConnection.py | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/cli/lmi/shell/LMIConnection.py b/cli/lmi/shell/LMIConnection.py
index 96d3354..af9379b 100644
--- a/cli/lmi/shell/LMIConnection.py
+++ b/cli/lmi/shell/LMIConnection.py
@@ -58,8 +58,8 @@ def __lmi_raw_input(prompt, use_echo=True):
get_input = raw_input
stream = sys.stdout
if not sys.stderr.isatty() and not sys.stdout.isatty():
- LOG.warn('both stdout and stderr are detached from terminal,'
- ' using stdout for prompt')
+ logging.getLogger("").warn(
+ 'Both stdout and stderr are detached from terminal, using stdout for
prompt')
if not use_echo:
os.system("stty -echo")
try: