mirror of
https://github.com/Crazy-Crew/CrazyAuctions.git
synced 2025-01-22 21:41:28 +01:00
Remove unnecessary hex codes from logging
This commit is contained in:
parent
23499e7682
commit
aab0b2cae3
@ -25,14 +25,14 @@ public class FileUtils {
|
|||||||
public static void extract(String input, Path output, boolean replace, boolean verbose) {
|
public static void extract(String input, Path output, boolean replace, boolean verbose) {
|
||||||
URL directory = FileUtils.class.getResource(input);
|
URL directory = FileUtils.class.getResource(input);
|
||||||
|
|
||||||
if (directory == null) if (verbose) CrazyLogger.debug("<#E0115F>Could not find <#11e092>" + input + " <#E0115F>in the jar.");
|
if (directory == null) if (verbose) CrazyLogger.debug("Could not find " + input + " in the jar.");
|
||||||
|
|
||||||
assert directory != null;
|
assert directory != null;
|
||||||
if (!directory.getProtocol().equals("jar")) if (verbose) CrazyLogger.debug("Failed because the protocol does not equal .jar!");
|
if (!directory.getProtocol().equals("jar")) if (verbose) CrazyLogger.debug("Failed because the protocol does not equal .jar!");
|
||||||
|
|
||||||
ZipFile jar;
|
ZipFile jar;
|
||||||
try {
|
try {
|
||||||
if (verbose) CrazyLogger.debug("<#E0115F>Starting to extract files from <#11e092>" + input + " <#E0115F>directory in the jar.");
|
if (verbose) CrazyLogger.debug("Starting to extract files from <#11e092>" + input + " directory in the jar.");
|
||||||
|
|
||||||
jar = ((JarURLConnection) directory.openConnection()).getJarFile();
|
jar = ((JarURLConnection) directory.openConnection()).getJarFile();
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
@ -55,7 +55,7 @@ public class FileUtils {
|
|||||||
|
|
||||||
if (entry.isDirectory()) {
|
if (entry.isDirectory()) {
|
||||||
if (exists) {
|
if (exists) {
|
||||||
if (verbose) CrazyLogger.debug("<#E0115F>File already exists.");
|
if (verbose) CrazyLogger.debug("File already exists.");
|
||||||
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
@ -63,7 +63,7 @@ public class FileUtils {
|
|||||||
try {
|
try {
|
||||||
Files.createDirectories(outFile);
|
Files.createDirectories(outFile);
|
||||||
|
|
||||||
if (verbose) CrazyLogger.debug("<#E0115F>Directories have been created.");
|
if (verbose) CrazyLogger.debug("Directories have been created.");
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
e.printStackTrace();
|
e.printStackTrace();
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user