HHH-8934 - protect dumping manually built jandex index using isTraceEnabled

This commit is contained in:
Steve Ebersole 2014-02-05 17:09:42 -06:00
parent 6bdbde9734
commit 76a2fc4b0f
1 changed files with 5 additions and 3 deletions

View File

@ -643,9 +643,11 @@ public class MetadataSources {
}
}
Index jandexIndex = indexer.complete();
jandexIndex.printSubclasses();
jandexIndex.printAnnotations();
final Index jandexIndex = indexer.complete();
if ( log.isTraceEnabled() ) {
jandexIndex.printSubclasses();
jandexIndex.printAnnotations();
}
return jandexIndex;
}