Skip to content

Commit df82aea

Browse files
committed
Using logger instead of println to remove synchronized codes
1 parent f3e58c7 commit df82aea

File tree

1 file changed

+5
-1
lines changed
  • dubbo-remoting/dubbo-remoting-netty4/src/test/java/org/apache/dubbo/remoting/transport/netty4

1 file changed

+5
-1
lines changed

dubbo-remoting/dubbo-remoting-netty4/src/test/java/org/apache/dubbo/remoting/transport/netty4/DemoServiceImpl.java

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,16 @@
1616
*/
1717
package org.apache.dubbo.remoting.transport.netty4;
1818

19+
import org.slf4j.Logger;
20+
import org.slf4j.LoggerFactory;
21+
1922
/**
2023
* <code>TestServiceImpl</code>
2124
*/
2225
public class DemoServiceImpl implements DemoService {
26+
private static final Logger logger = LoggerFactory.getLogger(DemoServiceImpl.class);
2327
public void sayHello(String name) {
24-
System.out.println("hello " + name);
28+
logger.info("hello " + name);
2529
}
2630

2731
public int plus(int a, int b) {

0 commit comments

Comments
 (0)