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 2022/10/30 16:20:49 UTC

[incubator-eventmesh] branch master updated: Use logger error to log hint file path information, and then throw exception information.

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

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


The following commit(s) were added to refs/heads/master by this push:
     new 073b8ab2 Use logger error to log hint file path information, and then throw exception information.
     new 89450431 Merge pull request #2020 from zhangxiansensuper/master
073b8ab2 is described below

commit 073b8ab27d642d27a4cbe9a11ce78748f2b6babd
Author: zhangzhe <zh...@163.com>
AuthorDate: Sun Oct 30 00:34:32 2022 +0800

    Use logger error to log hint file path information, and then throw exception information.
---
 .../apache/eventmesh/connector/pulsar/config/ConfigurationWrapper.java  | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/eventmesh-connector-plugin/eventmesh-connector-pulsar/src/main/java/org/apache/eventmesh/connector/pulsar/config/ConfigurationWrapper.java b/eventmesh-connector-plugin/eventmesh-connector-pulsar/src/main/java/org/apache/eventmesh/connector/pulsar/config/ConfigurationWrapper.java
index ee1c42d9..af7d0cc7 100644
--- a/eventmesh-connector-plugin/eventmesh-connector-pulsar/src/main/java/org/apache/eventmesh/connector/pulsar/config/ConfigurationWrapper.java
+++ b/eventmesh-connector-plugin/eventmesh-connector-pulsar/src/main/java/org/apache/eventmesh/connector/pulsar/config/ConfigurationWrapper.java
@@ -57,6 +57,7 @@ public class ConfigurationWrapper {
                 properties.load(resourceAsStream);
             }
         } catch (IOException e) {
+            log.error("Load {}.properties file from classpath error",EventMeshConstants.EVENTMESH_CONF_FILE,e);
             throw new RuntimeException(String.format("Load %s.properties file from classpath error", EventMeshConstants.EVENTMESH_CONF_FILE));
         }
 
@@ -66,6 +67,7 @@ public class ConfigurationWrapper {
                 properties.load(new BufferedReader(new FileReader(configPath)));
             }
         } catch (IOException e) {
+            log.error("Cannot load {} file from conf.", EventMeshConstants.EVENTMESH_CONF_FILE,e);
             throw new IllegalArgumentException(String.format("Cannot load %s file from conf", EventMeshConstants.EVENTMESH_CONF_FILE));
         }
     }


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