Commit 84a1a9a4 authored by Gaston Dombiak's avatar Gaston Dombiak Committed by gato

Added new catch block to log exception as warn (instead of error).

git-svn-id: http://svn.igniterealtime.org/svn/repos/wildfire/trunk@3665 b35dd754-fafc-0310-a699-88a17e54d16e
parent 0565de87
...@@ -321,6 +321,14 @@ public class OutgoingServerSession extends Session { ...@@ -321,6 +321,14 @@ public class OutgoingServerSession extends Session {
connection.close(); connection.close();
} }
} }
catch (XmlPullParserException e) {
Log.warn("Error creating secured outgoing session to remote server: " + hostname +
"(DNS lookup: " + realHostname + ":" + realPort + ")", e);
// Close the connection
if (connection != null) {
connection.close();
}
}
catch (Exception e) { catch (Exception e) {
Log.error("Error creating secured outgoing session to remote server: " + hostname + Log.error("Error creating secured outgoing session to remote server: " + hostname +
"(DNS lookup: " + realHostname + ":" + realPort + ")", e); "(DNS lookup: " + realHostname + ":" + realPort + ")", e);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment