Skip to content

Commit

Permalink
ContainerServiceExtension - check log level before constructing log
Browse files Browse the repository at this point in the history
messages in the critical path
  • Loading branch information
mkouba committed Oct 8, 2015
1 parent 3b4b9bc commit a3a0f71
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
import java.util.Map;
import java.util.Map.Entry;
import java.util.Set;
import java.util.logging.Level;
import java.util.logging.Logger;

import javax.enterprise.event.Observes;
Expand Down Expand Up @@ -73,8 +74,12 @@ public void processRemoteServiceTypes(@Observes ProcessAnnotatedType<?> event) t
|| Modifier.isInterface(type.getModifiers())))
{
services.put(event.getAnnotatedType().getJavaClass(), event.getAnnotatedType());
logger.fine("Addon [" + addon + "] requires service type [" + type.getName() + "] in ClassLoader ["
if (logger.isLoggable(Level.FINE))
{
logger.fine("Addon [" + addon + "] requires service type ["
+ type.getName() + "] in ClassLoader ["
+ type.getClassLoader() + "]");
}
}
}

Expand Down

0 comments on commit a3a0f71

Please sign in to comment.