System.out -> logger.debug
This commit is contained in:
@@ -78,15 +78,15 @@ public class ApiController {
|
||||
int sleepSeconds = api.getSleepSeconds().intValue();
|
||||
if (sleepSeconds > 0) {
|
||||
try {
|
||||
System.out.println("~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~");
|
||||
System.out.println(String.format("Start Sleep %d Seconds.", sleepSeconds));
|
||||
System.out.println("...");
|
||||
logger.debug("~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~");
|
||||
logger.debug("Start Sleep {} Seconds.", sleepSeconds);
|
||||
logger.debug("...");
|
||||
Thread.sleep(sleepSeconds * 1000);
|
||||
System.out.println("......");
|
||||
System.out.println(String.format("Finished Sleep %d Seconds.", sleepSeconds));
|
||||
System.out.println("~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~");
|
||||
logger.debug("......");
|
||||
logger.debug("Finished Sleep {} Seconds.", sleepSeconds);
|
||||
logger.debug("~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~");
|
||||
} catch (InterruptedException e) {
|
||||
e.printStackTrace();
|
||||
logger.error("sleep", e);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -153,7 +153,7 @@ public class ApiController {
|
||||
int length = NumberUtils.toInt(args[1]);
|
||||
String serviceValue = msg.substring(startIdx, startIdx + length);
|
||||
logger.debug("--------------------------------------------------");
|
||||
logger.debug("serviceCode=" + serviceValue);
|
||||
logger.debug("serviceCode={}", serviceValue);
|
||||
logger.debug("==================================================");
|
||||
logger.debug("==================================================");
|
||||
if (StringUtils.isBlank(serviceValue)) {
|
||||
|
||||
Reference in New Issue
Block a user