Commits

chri...@81dbac14-341a-0410-aa85-cbcd92e6f43e  committed 8e97380

Logging performance tweak

  • Participants
  • Parent commits c2cfaef

Comments (0)

Files changed (1)

File src/core/java/com/opensymphony/oscache/web/ServletCache.java

      * @param event The event that triggered this unbinding.
      */
     public void valueUnbound(HttpSessionBindingEvent event) {
-        log.info("[Cache] Unbound from session " + event.getSession().getId() + " using name " + event.getName());
+        if (log.isInfoEnabled()) {
+            log.info("[Cache] Unbound from session " + event.getSession().getId() + " using name " + event.getName());
+        }
+
         admin.finalizeListeners(this);
         clear();
     }