From 6427d6c66c4af232c9552fa620d4c4b77cc81a40 Mon Sep 17 00:00:00 2001 From: Simon Rettberg Date: Tue, 1 Aug 2017 15:44:59 +0200 Subject: Print stack trace in newTransport() catch block --- src/main/java/org/openslx/thrifthelper/ThriftManager.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/main/java/org/openslx/thrifthelper/ThriftManager.java b/src/main/java/org/openslx/thrifthelper/ThriftManager.java index 7fc6aa7..2fe706d 100644 --- a/src/main/java/org/openslx/thrifthelper/ThriftManager.java +++ b/src/main/java/org/openslx/thrifthelper/ThriftManager.java @@ -207,12 +207,12 @@ public class ThriftManager if ( socket != null ) { Util.safeClose( socket ); } - throw new TTransportException(); + throw new TTransportException( e ); } tsock = new TSocket( socket ); return new TBinaryProtocol( new TFramedTransport( tsock ) ); } catch ( TTransportException e ) { - LOGGER.error( "Could not open transport to thrift server at " + host + ":" + port ); + LOGGER.error( "Could not open transport to thrift server at " + host + ":" + port, e ); return null; } } -- cgit v1.2.3-55-g7522