Update GreetingServiceWithoutAOP.java

This commit is contained in:
Ana Peterlic 2024-02-17 18:13:10 +01:00
parent ff272d2dde
commit c96bfc1763
1 changed files with 2 additions and 2 deletions

View File

@ -10,9 +10,9 @@ public class GreetingServiceWithoutAOP {
private static final Logger logger = LoggerFactory.getLogger(GreetingServiceWithoutAOP.class);
public String greet(String name) {
logger.info(">> greet() - {}", name);
logger.debug(">> greet() - {}", name);
String result = String.format("Hello %s", name);
logger.info("<< greet() - {}", result);
logger.debug("<< greet() - {}", result);
return result;
}
}