From 37603aa15a19c8de87005afbba9f61ee5f7bbebd Mon Sep 17 00:00:00 2001 From: He Wang Date: Tue, 30 Aug 2022 17:22:58 +0800 Subject: [PATCH] update version and error log message (#54) update version and log message --- .../java/com/oceanbase/clogproxy/client/LogProxyClient.java | 3 ++- .../java/com/oceanbase/clogproxy/client/config/ClientConf.java | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/logproxy-client/src/main/java/com/oceanbase/clogproxy/client/LogProxyClient.java b/logproxy-client/src/main/java/com/oceanbase/clogproxy/client/LogProxyClient.java index ce0fa84..0079cd4 100644 --- a/logproxy-client/src/main/java/com/oceanbase/clogproxy/client/LogProxyClient.java +++ b/logproxy-client/src/main/java/com/oceanbase/clogproxy/client/LogProxyClient.java @@ -42,7 +42,8 @@ public class LogProxyClient { Validator.notEmpty(host, "server cannot be null"); Validator.validatePort(port, "port is not valid"); } catch (Exception e) { - throw new IllegalArgumentException("Illegal argument for LogProxyClient"); + throw new IllegalArgumentException( + "Illegal argument for LogProxyClient: " + e.getMessage()); } if (!config.valid()) { throw new IllegalArgumentException("Illegal argument for LogProxyClient"); diff --git a/logproxy-client/src/main/java/com/oceanbase/clogproxy/client/config/ClientConf.java b/logproxy-client/src/main/java/com/oceanbase/clogproxy/client/config/ClientConf.java index 8a3de20..9597c44 100644 --- a/logproxy-client/src/main/java/com/oceanbase/clogproxy/client/config/ClientConf.java +++ b/logproxy-client/src/main/java/com/oceanbase/clogproxy/client/config/ClientConf.java @@ -22,7 +22,7 @@ public class ClientConf extends SharedConf implements Serializable { private static final long serialVersionUID = 1L; /** Client version. */ - public static final String VERSION = "1.0.5"; + public static final String VERSION = "1.0.7"; /** Queue size for storing records received from log proxy. */ private final int transferQueueSize; -- GitLab