AMQ-6765 Add trace logging of start failure exception

Log the exception at trace level when start fails.

(cherry picked from commit 56bed30c64)
This commit is contained in:
Timothy Bish 2017-07-11 15:43:32 -04:00
parent 7ab743a053
commit 7a2c4eecb2
1 changed files with 1 additions and 0 deletions

View File

@ -281,6 +281,7 @@ public class HttpClientTransport extends HttpTransportSupport {
httpClient.execute(httpMethod, new BasicResponseHandler()); httpClient.execute(httpMethod, new BasicResponseHandler());
httpClient.execute(optionsMethod, handler); httpClient.execute(optionsMethod, handler);
} catch(Exception e) { } catch(Exception e) {
LOG.trace("Error on start: ", e);
throw new IOException("Failed to perform GET on: " + remoteUrl + " as response was: " + e.getMessage()); throw new IOException("Failed to perform GET on: " + remoteUrl + " as response was: " + e.getMessage());
} }