@@ -117,7 +117,7 @@ public static void loadLibrary(@NonNull String loadingModId,
117
117
try {
118
118
addToClasspath (file );
119
119
loadedLibraries .put (artifact , preferredVersion );
120
- log .info ("Library {} successfully loaded from disk!" , artifactLogName );
120
+ log .debug ("Library {} successfully loaded from disk!" , artifactLogName );
121
121
return ;
122
122
} catch (RuntimeException e ) {
123
123
log .warn ("Failed to load library {} from file! Re-downloading..." , artifactLogName );
@@ -151,29 +151,29 @@ public static void loadLibrary(@NonNull String loadingModId,
151
151
}
152
152
val success = new AtomicBoolean (false );
153
153
Internet .connect (new URL (url ),
154
- (ex ) -> log .info ("Artifact {} could not be downloaded from repo {}: {}" , artifactLogName ,
154
+ (ex ) -> log .debug ("Artifact {} could not be downloaded from repo {}: {}" , artifactLogName ,
155
155
finalRepo , ex .getMessage ()),
156
156
(input ) -> {
157
- log .info ("Downloading {} from {}" , artifactLogName , finalRepo );
157
+ log .debug ("Downloading {} from {}" , artifactLogName , finalRepo );
158
158
download (input , file );
159
- log .info ("Downloaded {}" , artifactLogName );
159
+ log .debug ("Downloaded {} from {} " , artifactLogName , finalRepo );
160
160
success .set (true );
161
161
});
162
162
if (success .get ()) {
163
- log .info ("Validating checksum for {}" , artifactLogName );
163
+ log .debug ("Validating checksum for {}" , artifactLogName );
164
164
boolean hadChecksum = false ;
165
165
for (val checksumType : CHECKSUM_TYPES ) {
166
166
val checksumURL = url + "." + checksumType ;
167
167
val checksumFile = new File (libDir , jarName + "." + checksumType );
168
- log .info ("Attempting to get {} checksum..." , checksumType );
168
+ log .debug ("Attempting to get {} checksum..." , checksumType );
169
169
success .set (false );
170
170
Internet .connect (new URL (checksumURL ),
171
- (ex ) -> log .info ("Could not get {} checksum for {}: {}" , checksumType ,
171
+ (ex ) -> log .debug ("Could not get {} checksum for {}: {}" , checksumType ,
172
172
artifactLogName , ex .getMessage ()),
173
173
(input ) -> {
174
- log .info ("Downloading {} checksum for {}" , checksumType , artifactLogName );
174
+ log .debug ("Downloading {} checksum for {}" , checksumType , artifactLogName );
175
175
download (input , checksumFile );
176
- log .info ("Downloaded {} checksum for {}" , checksumType , artifactLogName );
176
+ log .debug ("Downloaded {} checksum for {}" , checksumType , artifactLogName );
177
177
success .set (true );
178
178
});
179
179
if (success .get ()) {
@@ -187,7 +187,7 @@ public static void loadLibrary(@NonNull String loadingModId,
187
187
retry = true ;
188
188
continue redownload ;
189
189
}
190
- log .info ("Successfully validated {} checksum for {}" , checksumType ,
190
+ log .debug ("Successfully validated {} checksum for {}" , checksumType ,
191
191
artifactLogName );
192
192
hadChecksum = true ;
193
193
break ;
@@ -261,7 +261,7 @@ private static void addToClasspath(File file) {
261
261
try {
262
262
val cl = (LaunchClassLoader ) DependencyLoader .class .getClassLoader ();
263
263
cl .addURL (file .toURI ().toURL ());
264
- log .info ("Injected file {} into classpath!" , file .getPath ());
264
+ log .debug ("Injected file {} into classpath!" , file .getPath ());
265
265
} catch (Exception e ) {
266
266
throw new RuntimeException ("Failed to add library to classpath: " + file .getAbsolutePath (), e );
267
267
}
0 commit comments