Logged exception instead of printStackTrace in ConnectionOut

This commit is contained in:
Rsl1122 2018-08-12 10:02:25 +03:00
parent 306b7e45a6
commit ac0a2116f3

View File

@ -32,6 +32,8 @@ import java.security.NoSuchAlgorithmException;
import java.util.Map;
import java.util.Properties;
import java.util.UUID;
import java.util.logging.Level;
import java.util.logging.Logger;
/**
* Represents an outbound action request to another Plan server.
@ -51,7 +53,7 @@ public class ConnectionOut {
properties.setProperty("sun.net.client.defaultReadTimeout", Long.toString(TimeAmount.MINUTE.ms()));
properties.setProperty("sun.net.http.retryPost", Boolean.toString(false));
} catch (Exception e) {
e.printStackTrace();
Logger.getGlobal().log(Level.WARNING, "[Plan] Failed to set sun client timeout system properties.", e);
}
}