This is an automated email from the ASF dual-hosted git repository.
dinglei pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/rocketmq-exporter.git
The following commit(s) were added to refs/heads/master by this push:
new dcd72bb Fix travis-ci error.
dcd72bb is described below
commit dcd72bbb9a03cb84c9836f1067d3b3fb02e86493
Author: ShannonDing <[email protected]>
AuthorDate: Tue Mar 15 09:45:04 2022 +0800
Fix travis-ci error.
---
.../apache/rocketmq/exporter/RocketMQExporterApplication.java | 10 ++++++++--
1 file changed, 8 insertions(+), 2 deletions(-)
diff --git
a/src/main/java/org/apache/rocketmq/exporter/RocketMQExporterApplication.java
b/src/main/java/org/apache/rocketmq/exporter/RocketMQExporterApplication.java
index 0b0379c..d5e65dc 100644
---
a/src/main/java/org/apache/rocketmq/exporter/RocketMQExporterApplication.java
+++
b/src/main/java/org/apache/rocketmq/exporter/RocketMQExporterApplication.java
@@ -16,6 +16,8 @@
*/
package org.apache.rocketmq.exporter;
+import org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
import org.springframework.boot.CommandLineRunner;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
@@ -26,13 +28,17 @@ import
org.springframework.scheduling.annotation.EnableScheduling;
@ServletComponentScan
@EnableScheduling
public class RocketMQExporterApplication implements CommandLineRunner {
+
+ private final static Logger log =
LoggerFactory.getLogger(RocketMQExporterApplication.class);
+
public static void main(String[] args) {
SpringApplication.run(RocketMQExporterApplication.class, args);
}
@Override public void run(String... args) throws Exception {
- System.out.println(args[0]);
- System.out.println(args[1]);
+ //System.out.println(args[0]);
+ //System.out.println(args[1]);
+ log.info("Start RocketMQExporterApplication: " + args[0] + " And " +
args[1]);
}
}