]> WPIA git - gigi.git/blobdiff - lib/jetty/org/eclipse/jetty/util/preventers/AppContextLeakPreventer.java
updating jetty to jetty-9.2.16.v2016040
[gigi.git] / lib / jetty / org / eclipse / jetty / util / preventers / AppContextLeakPreventer.java
index 0cfd3c9553d29a6bcc876638fe23ca6c23fc085c..abadd654f39bc8f16b128f8fcd374e433691a5ad 100644 (file)
@@ -1,6 +1,6 @@
 //
 //  ========================================================================
-//  Copyright (c) 1995-2014 Mort Bay Consulting Pty. Ltd.
+//  Copyright (c) 1995-2016 Mort Bay Consulting Pty. Ltd.
 //  ------------------------------------------------------------------------
 //  All rights reserved. This program and the accompanying materials
 //  are made available under the terms of the Eclipse Public License v1.0
@@ -34,7 +34,8 @@ public class AppContextLeakPreventer extends AbstractLeakPreventer
     @Override
     public void prevent(ClassLoader loader)
     {
-        LOG.debug("Pinning classloader for AppContext.getContext() with "+loader);
+        if (LOG.isDebugEnabled())
+            LOG.debug("Pinning classloader for AppContext.getContext() with "+loader);
         ImageIO.getUseCache();
     }