Don't log stacktrace in rpo$checkProfile if debugLogs is disabled (closes #27)
This commit is contained in:
parent
5077197fe0
commit
15f0b2aec4
|
@ -58,7 +58,9 @@ public class ResourcePackManagerMixin {
|
|||
return;
|
||||
} catch (FileNotFoundException ignored) {
|
||||
} catch (IOException e) {
|
||||
Respackopts.LOGGER.error("Could not read respackopts config in root for " + profileName, e);
|
||||
String message = "Could not read respackopts config in root for " + profileName;
|
||||
if (RespackoptsConfig.debugLogs) Respackopts.LOGGER.error(message, e);
|
||||
else Respackopts.LOGGER.error(message);
|
||||
}
|
||||
|
||||
Identifier confId = new Identifier(Respackopts.ID, "conf.json");
|
||||
|
|
Loading…
Reference in New Issue