dubbo-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From i...@apache.org
Subject [incubator-dubbo-samples] branch master updated: add log to show the result
Date Tue, 09 Apr 2019 03:53:17 GMT
This is an automated email from the ASF dual-hosted git repository.

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


The following commit(s) were added to refs/heads/master by this push:
     new 883cd97  add log to show the result
883cd97 is described below

commit 883cd9740e0cb19943e2873e8d8d6ad8ffb2d131
Author: Ian Luo <ian.luo@gmail.com>
AuthorDate: Tue Apr 9 11:52:55 2019 +0800

    add log to show the result
---
 .../src/main/java/org/apache/dubbo/samples/stub/StubConsumer.java    | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/dubbo-samples-stub/src/main/java/org/apache/dubbo/samples/stub/StubConsumer.java
b/dubbo-samples-stub/src/main/java/org/apache/dubbo/samples/stub/StubConsumer.java
index 38dab6f..ebc3151 100644
--- a/dubbo-samples-stub/src/main/java/org/apache/dubbo/samples/stub/StubConsumer.java
+++ b/dubbo-samples-stub/src/main/java/org/apache/dubbo/samples/stub/StubConsumer.java
@@ -21,14 +21,17 @@ package org.apache.dubbo.samples.stub;
 
 import org.apache.dubbo.samples.stub.api.DemoService;
 
+import org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
 import org.springframework.context.support.ClassPathXmlApplicationContext;
 
 public class StubConsumer {
+    private static Logger logger = LoggerFactory.getLogger(StubConsumer.class);
 
     public static void main(String[] args) {
         ClassPathXmlApplicationContext context = new ClassPathXmlApplicationContext("spring/stub-consumer.xml");
         context.start();
         DemoService demoService = context.getBean("demoService", DemoService.class);
-        demoService.sayHello("dubbo");
+        logger.info("result: " + demoService.sayHello("dubbo"));
     }
 }


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org


Mime
View raw message