Fix 'Preparing <config> (count)' message

Previously, the message was logged before the mixins in the config were
initialzed, leading to the 'count' always being 0. This commit moves the
message to after the initialization of the config, and changes the
message from 'Preparing' to 'Prepared'

Since any exception caught during config intiialization is logged with
the mixin config, no information is hidden by this change.
This commit is contained in:
Aaron Hill committed 2016-04-07 20:13:39 -04:00
1 parent 00f2b8e202
commit 5558a5c94a
1 file changed
+1 -1
@@ -545,8 +545,8 @@ public class MixinTransformer extends TreeTransformer {
private void initConfigs() {
for (MixinConfig config : this.pendingConfigs) {
try {
this.logger.log(this.verboseLoggingLevel, "Preparing {} ({})", config, config.getMixinCount());
config.initialise(this.hotSwapper);
this.logger.log(this.verboseLoggingLevel, "Prepared {} ({})", config, config.getMixinCount());
} catch (Exception ex) {
this.logger.error("Error encountered whilst initialising mixin config '" + config.getName() + "': " + ex.getMessage(), ex);
}