mirror of
https://github.com/plan-player-analytics/Plan.git
synced 2025-02-24 08:12:25 +01:00
Logged exception instead of printStackTrace in ConnectionOut
This commit is contained in:
parent
306b7e45a6
commit
ac0a2116f3
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user