You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@inlong.apache.org by do...@apache.org on 2021/07/15 12:37:35 UTC

[incubator-inlong] 01/02: Error log, should be use log4j

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

dockerzhang pushed a commit to branch INLONG-739
in repository https://gitbox.apache.org/repos/asf/incubator-inlong.git

commit ea57af40366a79a8040863b7e6bfd16110a6e641
Author: Young Chou <xi...@126.com>
AuthorDate: Thu Jul 15 02:21:59 2021 +0800

    Error log, should be use log4j
---
 .../java/org/apache/inlong/tubemq/server/tools/MasterStartup.java   | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/inlong-tubemq/tubemq-server/src/main/java/org/apache/inlong/tubemq/server/tools/MasterStartup.java b/inlong-tubemq/tubemq-server/src/main/java/org/apache/inlong/tubemq/server/tools/MasterStartup.java
index eabe4d4..fd8f6e1 100644
--- a/inlong-tubemq/tubemq-server/src/main/java/org/apache/inlong/tubemq/server/tools/MasterStartup.java
+++ b/inlong-tubemq/tubemq-server/src/main/java/org/apache/inlong/tubemq/server/tools/MasterStartup.java
@@ -5,9 +5,9 @@
  * The ASF licenses this file to You under the Apache License, Version 2.0
  * (the "License"); you may not use this file except in compliance with
  * the License.  You may obtain a copy of the License at
- *
+ * <p>
  * http://www.apache.org/licenses/LICENSE-2.0
- *
+ * <p>
  * Unless required by applicable law or agreed to in writing, software
  * distributed under the License is distributed on an "AS IS" BASIS,
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
@@ -32,7 +32,7 @@ public class MasterStartup {
         // get configure file path
         ProcessResult result = new ProcessResult();
         if (!CliUtils.getConfigFilePath(args, result)) {
-            System.err.println(result.errInfo);
+            logger.error("Master startup failed! {}", result.errInfo);
             System.exit(1);
         }
         String configFilePath = (String) result.retData1;