diff options
author | Frederic Leger | 2014-03-13 13:59:09 +0000 |
---|---|---|
committer | Frederic Leger | 2014-03-13 15:06:58 +0000 |
commit | fcee9e4889c7304a4210df4720432234ae2d4778 (patch) | |
tree | 922420eebc2ff3a9f70962b5d003fb33cc825b9c /python/src/tcf/services/remote/StreamsProxy.py | |
parent | e5d5f9bbe2c36eb1bd2debfd27411b55d0492bb2 (diff) | |
download | org.eclipse.tcf-fcee9e4889c7304a4210df4720432234ae2d4778.tar.gz org.eclipse.tcf-fcee9e4889c7304a4210df4720432234ae2d4778.tar.xz org.eclipse.tcf-fcee9e4889c7304a4210df4720432234ae2d4778.zip |
Improve debug output in the case of exception.
Another ound of adding the stacktrace at the time of the exception.
Diffstat (limited to 'python/src/tcf/services/remote/StreamsProxy.py')
-rw-r--r-- | python/src/tcf/services/remote/StreamsProxy.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/python/src/tcf/services/remote/StreamsProxy.py b/python/src/tcf/services/remote/StreamsProxy.py index d249a5b93..dbaf68e3e 100644 --- a/python/src/tcf/services/remote/StreamsProxy.py +++ b/python/src/tcf/services/remote/StreamsProxy.py @@ -1,5 +1,5 @@ # ***************************************************************************** -# * Copyright (c) 2011, 2013 Wind River Systems, Inc. and others. +# * Copyright (c) 2011, 2013-2014 Wind River Systems, Inc. and others. # * All rights reserved. This program and the accompanying materials # * are made available under the terms of the Eclipse Public License v1.0 # * which accompanies this distribution, and is available at @@ -142,7 +142,7 @@ class StreamsProxy(streams.StreamsService): def __init__(self): super(WriteCommand, self).__init__(service.channel, service, "write", - (stream_id, binary)) + (stream_id, size, binary,)) def done(self, error, args): if not error: @@ -172,4 +172,6 @@ class ChannelEventListener(channel.EventListener): else: raise IOError("Streams service: unknown event: " + name) except Exception as x: + import sys + x.tb = sys.exc_info()[2] self.service.channel.terminate(x) |