Hmmm... Let me guess. Update for an Issue #287

This commit is contained in:
Miroslav Stampar
2012-12-12 16:31:20 +01:00
parent 921000bd87
commit e381158058
3 changed files with 26 additions and 13 deletions

View File

@@ -59,7 +59,7 @@ def xmlRpcServe():
server = XMLRPCServer(cmdLineOptions.xmlRpcPort or XMLRPC_SERVER_PORT)
def emit(self, record):
message = stdoutencode(FORMATTER.format(record))
sys.stdout.write("%s\n" % message)
sys.stdout.write("%s" % message)
LOGGER_HANDLER.emit = types.MethodType(emit, LOGGER_HANDLER, type(LOGGER_HANDLER))
sys.stdout = StringIO.StringIO()
sys.stderr = StringIO.StringIO()