Skip to content

Commit c14f6f0

Browse files
committed
불필요 logger 주석처리
1 parent 7834cef commit c14f6f0

1 file changed

Lines changed: 15 additions & 15 deletions

File tree

utils/src/main/java/com/cloud/utils/script/Script.java

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -509,14 +509,14 @@ public synchronized String getResult() throws InterruptedException {
509509
}
510510

511511
public static String findScript(String path, String script) {
512-
LOGGER.debug("Looking for " + script + " in the classpath");
512+
// LOGGER.debug("Looking for " + script + " in the classpath");
513513

514514
URL url = ClassLoader.getSystemResource(script);
515-
LOGGER.debug("System resource: " + url);
515+
// LOGGER.debug("System resource: " + url);
516516
File file = null;
517517
if (url != null) {
518518
file = new File(url.getFile());
519-
LOGGER.debug("Absolute path = " + file.getAbsolutePath());
519+
// LOGGER.debug("Absolute path = " + file.getAbsolutePath());
520520
return file.getAbsolutePath();
521521
}
522522

@@ -535,11 +535,11 @@ public static String findScript(String path, String script) {
535535
} else {
536536
url = Script.class.getClassLoader().getResource(path + File.separator + script);
537537
}
538-
LOGGER.debug("Classpath resource: " + url);
538+
// LOGGER.debug("Classpath resource: " + url);
539539
if (url != null) {
540540
try {
541541
file = new File(new URI(url.toString()).getPath());
542-
LOGGER.debug("Absolute path = " + file.getAbsolutePath());
542+
// LOGGER.debug("Absolute path = " + file.getAbsolutePath());
543543
return file.getAbsolutePath();
544544
} catch (URISyntaxException e) {
545545
LOGGER.warn("Unable to convert " + url.toString() + " to a URI");
@@ -556,7 +556,7 @@ public static String findScript(String path, String script) {
556556
return file.exists() ? file.getAbsolutePath() : null;
557557
}
558558

559-
LOGGER.debug("Looking for " + script);
559+
// LOGGER.debug("Looking for " + script);
560560
String search = null;
561561
for (int i = 0; i < 3; i++) {
562562
if (i == 0) {
@@ -576,33 +576,33 @@ public static String findScript(String path, String script) {
576576
else
577577
cp = cp.substring(begin, end);
578578

579-
LOGGER.debug("Current binaries reside at " + cp);
579+
// LOGGER.debug("Current binaries reside at " + cp);
580580
search = cp;
581581
} else if (i == 1) {
582-
LOGGER.debug("Searching in environment.properties");
582+
// LOGGER.debug("Searching in environment.properties");
583583
try {
584584
final File propsFile = PropertiesUtil.findConfigFile("environment.properties");
585585
if (propsFile == null) {
586-
LOGGER.debug("environment.properties could not be opened");
586+
// LOGGER.debug("environment.properties could not be opened");
587587
} else {
588588
final Properties props = PropertiesUtil.loadFromFile(propsFile);
589589
search = props.getProperty("paths.script");
590590
}
591591
} catch (IOException e) {
592-
LOGGER.debug("environment.properties could not be opened");
592+
// LOGGER.debug("environment.properties could not be opened");
593593
continue;
594594
}
595-
LOGGER.debug("environment.properties says scripts should be in " + search);
595+
// LOGGER.debug("environment.properties says scripts should be in " + search);
596596
} else {
597-
LOGGER.debug("Searching in the current directory");
597+
// LOGGER.debug("Searching in the current directory");
598598
search = ".";
599599
}
600600

601601
search += File.separatorChar + path + File.separator;
602602
do {
603603
search = search.substring(0, search.lastIndexOf(File.separator));
604604
file = new File(search + File.separator + script);
605-
LOGGER.debug("Looking for " + script + " in " + file.getAbsolutePath());
605+
// LOGGER.debug("Looking for " + script + " in " + file.getAbsolutePath());
606606
} while (!file.exists() && search.lastIndexOf(File.separator) != -1);
607607

608608
if (file.exists()) {
@@ -617,7 +617,7 @@ public static String findScript(String path, String script) {
617617
do {
618618
search = search.substring(0, search.lastIndexOf(File.separator));
619619
file = new File(search + File.separator + script);
620-
LOGGER.debug("Looking for " + script + " in " + file.getAbsolutePath());
620+
// LOGGER.debug("Looking for " + script + " in " + file.getAbsolutePath());
621621
} while (!file.exists() && search.lastIndexOf(File.separator) != -1);
622622

623623
if (file.exists()) {
@@ -702,7 +702,7 @@ public static Pair<Integer, String> executePipedCommands(List<String[]> commands
702702
output.append(line).append(System.lineSeparator());
703703
}
704704
last.waitFor();
705-
LOGGER.debug("Piped commands executed successfully");
705+
// LOGGER.debug("Piped commands executed successfully");
706706
return new Pair<>(last.exitValue(), output.toString());
707707
} catch (IOException | InterruptedException e) {
708708
LOGGER.error("Error executing piped commands", e);

0 commit comments

Comments
 (0)