Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEike Stepper2013-04-19 04:09:38 -0400
committerEike Stepper2013-04-19 04:09:38 -0400
commit976a1e000462366cacc1828631620d1e62c3b8be (patch)
tree37f8e9fa7414fa55d4eb04c61f4d4b708304c104
parentfe15e7be118e552e0ff04f52f960770c03a9f1a3 (diff)
downloadcdo-976a1e000462366cacc1828631620d1e62c3b8be.tar.gz
cdo-976a1e000462366cacc1828631620d1e62c3b8be.tar.xz
cdo-976a1e000462366cacc1828631620d1e62c3b8be.zip
Better logging in TCPAcceptor.handleRegistration()
-rw-r--r--plugins/org.eclipse.net4j.tcp/src/org/eclipse/net4j/internal/tcp/TCPAcceptor.java5
1 files changed, 3 insertions, 2 deletions
diff --git a/plugins/org.eclipse.net4j.tcp/src/org/eclipse/net4j/internal/tcp/TCPAcceptor.java b/plugins/org.eclipse.net4j.tcp/src/org/eclipse/net4j/internal/tcp/TCPAcceptor.java
index 73cbb50cd4..b3de886b71 100644
--- a/plugins/org.eclipse.net4j.tcp/src/org/eclipse/net4j/internal/tcp/TCPAcceptor.java
+++ b/plugins/org.eclipse.net4j.tcp/src/org/eclipse/net4j/internal/tcp/TCPAcceptor.java
@@ -124,9 +124,10 @@ public class TCPAcceptor extends Acceptor implements ITCPAcceptor, ITCPPassiveSe
public void handleRegistration(ITCPSelector selector, ServerSocketChannel serverSocketChannel)
{
+ InetSocketAddress addr = null;
+
try
{
- InetSocketAddress addr = null;
if (address != null)
{
addr = new InetSocketAddress(InetAddress.getByName(address), port);
@@ -156,7 +157,7 @@ public class TCPAcceptor extends Acceptor implements ITCPAcceptor, ITCPPassiveSe
}
catch (Exception ex)
{
- OM.LOG.error(ex);
+ OM.LOG.error("Problem while binding " + addr, ex);
deactivateAsync();
}
finally

Back to the top