Improve logging wrt XMPPTCPConnection.shutdownDone

This commit is contained in:
Florian Schmaus 2015-02-26 08:27:19 +01:00
parent 404b90054b
commit 4b7a396b9b
1 changed files with 2 additions and 1 deletions

View File

@ -1260,7 +1260,7 @@ public class XMPPTCPConnection extends AbstractXMPPConnection {
shutdownDone.checkIfSuccessOrWait();
}
catch (NoResponseException e) {
LOGGER.log(Level.WARNING, "NoResponseException", e);
LOGGER.log(Level.WARNING, "shutdownDone was not marked as successful by the writer thread", e);
}
}
@ -1406,6 +1406,7 @@ public class XMPPTCPConnection extends AbstractXMPPConnection {
LOGGER.log(Level.FINE, "Ignoring Exception in writePackets()", e);
}
} finally {
LOGGER.fine("Reporting shutdownDone success in writer thread");
shutdownDone.reportSuccess();
}
}