Skip to content

Commit

Permalink
Using logger instead of println to remove synchronized codes
Browse files Browse the repository at this point in the history
  • Loading branch information
zrlw committed Feb 23, 2025
1 parent f3e58c7 commit 217cd51
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,17 @@
*/
package org.apache.dubbo.remoting.transport.netty4;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

/**
* <code>TestServiceImpl</code>
*/
public class DemoServiceImpl implements DemoService {
private static final Logger logger = LoggerFactory.getLogger(DemoServiceImpl.class);

public void sayHello(String name) {
System.out.println("hello " + name);
logger.info("hello " + name);
}

public int plus(int a, int b) {
Expand Down

0 comments on commit 217cd51

Please sign in to comment.