Use correct mixin list in debug message, fixes #105

This commit is contained in:
Mumfrey committed 2016-02-23 11:55:44 +00:00
1 parent ea29f2ba6c
commit 4ad037ade1
2 files changed
+10 -1

No files matched your search

@@ -465,6 +465,15 @@ class MixinConfig implements Comparable<MixinConfig>, IMixinConfig {
return defaultGroup != null && !defaultGroup.isEmpty() ? defaultGroup : "default";
}
/**
* Get the number of mixins in this config, for debug logging
*
* @return total enumerated mixins in set
*/
int getMixinCount() {
return this.mixins.size();
}
/**
* Get the list of mixin classes we will be applying
*/
@@ -545,7 +545,7 @@ public class MixinTransformer extends TreeTransformer {
private void initConfigs() {
for (MixinConfig config : this.pendingConfigs) {
try {
this.logger.log(this.verboseLoggingLevel, "Preparing {} ({})", config, config.getClasses().size());
this.logger.log(this.verboseLoggingLevel, "Preparing {} ({})", config, config.getMixinCount());
config.initialise(this.hotSwapper);
} catch (Exception ex) {
this.logger.error("Error encountered whilst initialising mixin config '" + config.getName() + "': " + ex.getMessage(), ex);