From 363b563598b68b4e1d665db73ce467c4e06958cd Mon Sep 17 00:00:00 2001 From: andyliuliming Date: Fri, 27 Nov 2015 13:58:11 +0800 Subject: [PATCH] remove the print e remove the print e, when logging to the c onsole, because when IOError occurs, the print would also rais a IOError --- waagent | 1 - 1 file changed, 1 deletion(-) diff --git a/waagent b/waagent index 6acaa7e..aa35a0b 100644 --- a/waagent +++ b/waagent @@ -2543,7 +2543,6 @@ class Logger(object): message = filter(lambda x : x in string.printable, message) C.write(message.encode('ascii','ignore') + "\n") except IOError, e: - print e pass def Log(self,message):