Un-static part 4: Logs

This commit is contained in:
zzz
2022-01-11 16:00:38 -05:00
parent 5e3878f9ad
commit eca5a15605
10 changed files with 17 additions and 20 deletions

View File

@ -20,8 +20,6 @@ import com.thetransactioncompany.jsonrpc2.JSONRPC2Response;
import com.thetransactioncompany.jsonrpc2.client.JSONRPC2SessionException;
public class GetI2PControl {
private final static Log _log = LogFactory.getLog(GetI2PControl.class);
public static EnumMap<I2P_CONTROL, Object> execute(I2P_CONTROL ... settings)
throws InvalidPasswordException, JSONRPC2SessionException{
@ -58,8 +56,10 @@ public class GetI2PControl {
return new EnumMap<I2P_CONTROL, Object>(I2P_CONTROL.class);
}
} catch (UnrecoverableFailedRequestException e) {
Log _log = LogFactory.getLog(GetI2PControl.class);
_log.error("getI2PControl failed.", e);
} catch (InvalidParametersException e) {
Log _log = LogFactory.getLog(GetI2PControl.class);
_log.error("getI2PControl was rejected by remote host as invalid.", e);
}
return null;