提交 a540ed22 编写于 作者: K kohsuke

Further toning down the error

git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@17575 71c3de6d-444a-0410-be80-ed276b4c234a
上级 34b5737e
......@@ -28,6 +28,7 @@ import hudson.model.Hudson;
import java.io.IOException;
import java.net.InetSocketAddress;
import java.net.SocketAddress;
import java.net.BindException;
import java.nio.ByteBuffer;
import java.nio.channels.ClosedByInterruptException;
import java.nio.channels.DatagramChannel;
......@@ -80,6 +81,10 @@ public class UDPBroadcastThread extends Thread {
}
} catch (ClosedByInterruptException e) {
// shut down
} catch (BindException e) {
// if we failed to listen to UDP, just silently abandon it, as a stack trace
// makes people unnecessarily concerned, for a feature that currently does no good.
LOGGER.log(Level.FINE, "Failed to listen to UDP port "+PORT,e);
} catch (IOException e) {
LOGGER.log(Level.WARNING, "UDP handling problem",e);
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册