r9821 - helma-ng/trunk/src/org/helma/util

[email protected] Tue, 9 Jun 2009 09:20:06 +0200 (CEST)
Newsgroups gmane.comp.java.helma.cvs
Message-ID <20090609072006.4F4BE3D0E3@mia>
Author: hannes
Date: 2009-06-09 09:20:06 +0200 (Tue, 09 Jun 2009)
New Revision: 9821

Modified:
   helma-ng/trunk/src/org/helma/util/DebuggerBase.java
Log:
minor changes

Details at http://dev.helma.org/trac/helma/changeset/9821

Modified: helma-ng/trunk/src/org/helma/util/DebuggerBase.java
===================================================================
--- helma-ng/trunk/src/org/helma/util/DebuggerBase.java	2009-06-06 10:14:03 UTC (rev 9820)
+++ helma-ng/trunk/src/org/helma/util/DebuggerBase.java	2009-06-09 07:20:06 UTC (rev 9821)
@@ -24,9 +24,11 @@
 
     public DebugFrame getFrame(Context cx, DebuggableScript fnOrScript) {
         String path = fnOrScript.getSourceName();
-        log.debug("Getting Frame for " + path +
-                ", debugger script depth is " + debuggerScriptDepth);
-        if (path.equals(debuggerScript) || debuggerScriptDepth > 0) {
+        if (log.isDebugEnabled()) {
+            log.debug("Getting Frame for " + path +
+                      ", debugger script depth is " + debuggerScriptDepth);
+        }
+        if (debuggerScriptDepth > 0 || path.equals(debuggerScript)) {
             return new DebuggerScriptFrame();
         } else {
             return getScriptFrame(cx, fnOrScript);