You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pulsar.apache.org by ch...@apache.org on 2021/10/17 14:37:19 UTC
[pulsar] 03/07: [Standalone] Print log when configuration is failed
to load (#12280)
This is an automated email from the ASF dual-hosted git repository.
chenhang pushed a commit to branch branch-2.8
in repository https://gitbox.apache.org/repos/asf/pulsar.git
commit e7075467cd16d34398f217b6ccfad8cddd13d931
Author: litao <to...@gmail.com>
AuthorDate: Tue Oct 12 09:04:02 2021 +0800
[Standalone] Print log when configuration is failed to load (#12280)
### Motivation
Print log when configuration is failed to load.
### Modifications
Print log when config is null.
(cherry picked from commit 6c03e539b0e75b535400f09cec9bcc741c7e41ff)
---
pulsar-broker/src/main/java/org/apache/pulsar/PulsarStandalone.java | 1 +
1 file changed, 1 insertion(+)
diff --git a/pulsar-broker/src/main/java/org/apache/pulsar/PulsarStandalone.java b/pulsar-broker/src/main/java/org/apache/pulsar/PulsarStandalone.java
index b9d4963..a91dafc 100644
--- a/pulsar-broker/src/main/java/org/apache/pulsar/PulsarStandalone.java
+++ b/pulsar-broker/src/main/java/org/apache/pulsar/PulsarStandalone.java
@@ -248,6 +248,7 @@ public class PulsarStandalone implements AutoCloseable {
public void start() throws Exception {
if (config == null) {
+ log.error("Failed to load configuration");
System.exit(1);
}