From 0efdc4018fbfc8b30c853ead789faf9604cf90e3 Mon Sep 17 00:00:00 2001 From: Florian Schmaus Date: Wed, 22 Apr 2015 22:31:58 +0200 Subject: [PATCH] Use XMPPConnection.toString() in SmackIntegrationTestFramework --- .../smack/inttest/SmackIntegrationTestFramework.java | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/smack-integration-test/src/main/java/org/igniterealtime/smack/inttest/SmackIntegrationTestFramework.java b/smack-integration-test/src/main/java/org/igniterealtime/smack/inttest/SmackIntegrationTestFramework.java index e2be09ecb..23f68a1a9 100644 --- a/smack-integration-test/src/main/java/org/igniterealtime/smack/inttest/SmackIntegrationTestFramework.java +++ b/smack-integration-test/src/main/java/org/igniterealtime/smack/inttest/SmackIntegrationTestFramework.java @@ -453,12 +453,11 @@ public class SmackIntegrationTestFramework { for (int i = 0; i < numberOfConnections; ++i) { try { AccountManager.getInstance(connections[i]).deleteAccount(); - LOGGER.info("Successfully deleted account for connection (" - + connections[i] + ')'); + LOGGER.info("Successfully deleted account of" + connections[i]); } catch (NoResponseException | XMPPErrorException | NotConnectedException | InterruptedException e) { - LOGGER.log(Level.SEVERE, "Could not delete account", e); + LOGGER.log(Level.SEVERE, "Could not delete account of " + connections[i], e); } connections[i].disconnect(); } @@ -475,10 +474,10 @@ public class SmackIntegrationTestFramework { try { am.deleteAccount(); } catch (NoResponseException | InterruptedException e) { - LOGGER.log(Level.WARNING, "Exception deleting account" , e); + LOGGER.log(Level.WARNING, "Exception deleting account for " + connection , e); continue; } catch (NotConnectedException e) { - LOGGER.log(Level.WARNING, "Exception deleting account" , e); + LOGGER.log(Level.WARNING, "Exception deleting account for " + connection , e); connection.connect().login(); continue; }