You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@eventmesh.apache.org by mi...@apache.org on 2021/08/04 07:37:04 UTC

[incubator-eventmesh] branch develop updated: fix configuration property get error (#479)

This is an automated email from the ASF dual-hosted git repository.

mikexue pushed a commit to branch develop
in repository https://gitbox.apache.org/repos/asf/incubator-eventmesh.git


The following commit(s) were added to refs/heads/develop by this push:
     new fefe391  fix configuration property get error (#479)
fefe391 is described below

commit fefe391b078d919f4bcab47603ae4b1ca097f182
Author: Wenjun Ruan <we...@apache.org>
AuthorDate: Wed Aug 4 15:36:58 2021 +0800

    fix configuration property get error (#479)
---
 .../java/org/apache/eventmesh/common/config/ConfigurationWrapper.java   | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/eventmesh-common/src/main/java/org/apache/eventmesh/common/config/ConfigurationWrapper.java b/eventmesh-common/src/main/java/org/apache/eventmesh/common/config/ConfigurationWrapper.java
index 084a888..c9e01d0 100644
--- a/eventmesh-common/src/main/java/org/apache/eventmesh/common/config/ConfigurationWrapper.java
+++ b/eventmesh-common/src/main/java/org/apache/eventmesh/common/config/ConfigurationWrapper.java
@@ -80,7 +80,7 @@ public class ConfigurationWrapper {
         if (StringUtils.isEmpty(configValue)) {
             return defaultValue;
         }
-        Preconditions.checkState(StringUtils.isNumeric(configKey), String.format("%s error", configKey));
+        Preconditions.checkState(StringUtils.isNumeric(configValue), String.format("key:%s, value:%s error", configKey, configValue));
         return Integer.parseInt(configValue);
     }
 

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@eventmesh.apache.org
For additional commands, e-mail: commits-help@eventmesh.apache.org