mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-07-16 05:25:21 +02:00
[193426] don't display exceptions on the daemon
This commit is contained in:
parent
7d76c761f0
commit
35d3342dac
1 changed files with 15 additions and 8 deletions
|
@ -12,7 +12,7 @@
|
||||||
* Emily Bruner, Mazen Faraj, Adrian Storisteanu, Li Ding, and Kent Hawley.
|
* Emily Bruner, Mazen Faraj, Adrian Storisteanu, Li Ding, and Kent Hawley.
|
||||||
*
|
*
|
||||||
* Contributors:
|
* Contributors:
|
||||||
* {Name} (company) - description of contribution.
|
* David McKnight (IBM) - [193426] don't display exceptions
|
||||||
*******************************************************************************/
|
*******************************************************************************/
|
||||||
|
|
||||||
package org.eclipse.dstore.core.server;
|
package org.eclipse.dstore.core.server;
|
||||||
|
@ -213,7 +213,8 @@ public class ServerLauncher extends Thread {
|
||||||
}
|
}
|
||||||
catch (IOException e)
|
catch (IOException e)
|
||||||
{
|
{
|
||||||
e.printStackTrace();
|
// don't display exceptions 193426
|
||||||
|
//e.printStackTrace();
|
||||||
_port = "0"; //$NON-NLS-1$
|
_port = "0"; //$NON-NLS-1$
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -518,7 +519,8 @@ public class ServerLauncher extends Thread {
|
||||||
_serverSocket = sslContext.getServerSocketFactory()
|
_serverSocket = sslContext.getServerSocketFactory()
|
||||||
.createServerSocket(i);
|
.createServerSocket(i);
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
e.printStackTrace();
|
// don't display exceptions 193426
|
||||||
|
//e.printStackTrace();
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
_serverSocket = new ServerSocket(i);
|
_serverSocket = new ServerSocket(i);
|
||||||
|
@ -533,14 +535,16 @@ public class ServerLauncher extends Thread {
|
||||||
} catch (UnknownHostException e) {
|
} catch (UnknownHostException e) {
|
||||||
System.err
|
System.err
|
||||||
.println("Networking problem, can't resolve local host"); //$NON-NLS-1$
|
.println("Networking problem, can't resolve local host"); //$NON-NLS-1$
|
||||||
e.printStackTrace();
|
// don't display exceptions 193426
|
||||||
|
//e.printStackTrace();
|
||||||
System.exit(-1);
|
System.exit(-1);
|
||||||
} catch (BindException e) {
|
} catch (BindException e) {
|
||||||
System.err.println("socket taken on " + i); //$NON-NLS-1$
|
System.err.println("socket taken on " + i); //$NON-NLS-1$
|
||||||
// keep going
|
// keep going
|
||||||
} catch (IOException e) {
|
} catch (IOException e) {
|
||||||
System.err.println("Failure to create ServerSocket"); //$NON-NLS-1$
|
System.err.println("Failure to create ServerSocket"); //$NON-NLS-1$
|
||||||
e.printStackTrace();
|
// don't display exceptions 193426
|
||||||
|
//e.printStackTrace();
|
||||||
System.exit(-1);
|
System.exit(-1);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -560,7 +564,8 @@ public class ServerLauncher extends Thread {
|
||||||
_serverSocket = sslContext.getServerSocketFactory()
|
_serverSocket = sslContext.getServerSocketFactory()
|
||||||
.createServerSocket(port);
|
.createServerSocket(port);
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
e.printStackTrace();
|
// don't display exceptions 193426
|
||||||
|
//e.printStackTrace();
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
_serverSocket = new ServerSocket(port);
|
_serverSocket = new ServerSocket(port);
|
||||||
|
@ -571,11 +576,13 @@ public class ServerLauncher extends Thread {
|
||||||
} catch (UnknownHostException e) {
|
} catch (UnknownHostException e) {
|
||||||
System.err
|
System.err
|
||||||
.println("Networking problem, can't resolve local host"); //$NON-NLS-1$
|
.println("Networking problem, can't resolve local host"); //$NON-NLS-1$
|
||||||
e.printStackTrace();
|
// don't display exceptions 193426
|
||||||
|
//e.printStackTrace();
|
||||||
System.exit(-1);
|
System.exit(-1);
|
||||||
} catch (IOException e) {
|
} catch (IOException e) {
|
||||||
System.err.println("Failure to create ServerSocket"); //$NON-NLS-1$
|
System.err.println("Failure to create ServerSocket"); //$NON-NLS-1$
|
||||||
e.printStackTrace();
|
// don't display exceptions 193426
|
||||||
|
//e.printStackTrace();
|
||||||
System.exit(-1);
|
System.exit(-1);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue