Skip to content

Commit b37678f

Browse files
committed
Have other util projects use logging util
1 parent ca9a2a3 commit b37678f

File tree

4 files changed

+11
-7
lines changed

4 files changed

+11
-7
lines changed

download-utils/src/main/java/net/minecraftforge/util/download/DownloadUtils.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ public String read(final JsonReader in) throws IOException {
105105
Log.error("Invalid number of redirects: " + location);
106106
return null;
107107
} else {
108-
//System.out.println("Following redirect: " + location);
108+
Log.debug("Following redirect: " + location);
109109
uri = uri.resolve(location);
110110
url = uri.toURL();
111111
}

hash-utils/build.gradle

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@ plugins {
99
apply from: rootProject.file('build_shared.gradle')
1010

1111
dependencies {
12+
implementation project(':log-utils')
13+
1214
// Static Analysis
1315
compileOnly libs.nulls
1416
}

hash-utils/src/main/java/net/minecraftforge/util/hash/HashStore.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44
*/
55
package net.minecraftforge.util.hash;
66

7+
import net.minecraftforge.util.logging.Log;
8+
79
import java.io.File;
810
import java.io.IOException;
911
import java.nio.charset.StandardCharsets;
@@ -90,7 +92,7 @@ public HashStore load(File file) {
9092
oldHashes.put(split[0], split[1]);
9193
}
9294
} catch (IOException e) {
93-
System.out.println("Failed to read cache file. It will be ignored. : " + e.getMessage());
95+
Log.warn("Failed to read cache file. It will be ignored. : " + e.getMessage());
9496
}
9597

9698
return this;

log-utils/build.gradle

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,11 @@ jar {
2121
manifest {
2222
attributes('Automatic-Module-Name': 'net.minecraftforge.utils.logging')
2323
attributes([
24-
'Specification-Title': 'Logging Utils',
25-
'Specification-Vendor': 'Forge Development LLC',
26-
'Specification-Version': gitversion.version.info.tag,
27-
'Implementation-Title': 'Logging Utils',
28-
'Implementation-Vendor': 'Forge Development LLC',
24+
'Specification-Title' : 'Logging Utils',
25+
'Specification-Vendor' : 'Forge Development LLC',
26+
'Specification-Version' : gitversion.version.info.tag,
27+
'Implementation-Title' : 'Logging Utils',
28+
'Implementation-Vendor' : 'Forge Development LLC',
2929
'Implementation-Version': project.version
3030
] as LinkedHashMap, 'net/minecraftforge/util/logging/')
3131
}

0 commit comments

Comments
 (0)