[Swift-commit] r4468 - trunk/src/org/griphyn/vdl/karajan/lib

hategan at ci.uchicago.edu hategan at ci.uchicago.edu
Thu May 12 16:22:48 CDT 2011


Author: hategan
Date: 2011-05-12 16:22:39 -0500 (Thu, 12 May 2011)
New Revision: 4468

Modified:
   trunk/src/org/griphyn/vdl/karajan/lib/AppStageins.java
Log:
logging adjustment

Modified: trunk/src/org/griphyn/vdl/karajan/lib/AppStageins.java
===================================================================
--- trunk/src/org/griphyn/vdl/karajan/lib/AppStageins.java	2011-05-12 21:17:41 UTC (rev 4467)
+++ trunk/src/org/griphyn/vdl/karajan/lib/AppStageins.java	2011-05-12 21:22:39 UTC (rev 4468)
@@ -20,7 +20,7 @@
 public class AppStageins extends AbstractSequentialWithArguments {
 
     static Logger logger = Logger.getLogger(AppStageins.class);
-
+    
     public static final Arg JOBID = new Arg.Positional("jobid");
     public static final Arg FILES = new Arg.Positional("files");
     public static final Arg DIR = new Arg.Positional("dir");
@@ -50,7 +50,9 @@
                 .getDir()
                     + "/" + file.getName();
             String relpath = path.startsWith("/") ? path.substring(1) : path;
-            logger.debug("will stage in: " + relpath + " via: " + protocol);
+            if (logger.isDebugEnabled()) {
+                logger.debug("will stage in: " + relpath + " via: " + protocol);
+            }
             ArgUtil.getChannelReturn(stack, STAGEIN).append(
                 makeList(protocol + "://" + file.getHost() + "/" + path,
                     TypeUtil.toString(DIR.getValue(stack)) + "/" + relpath));




More information about the Swift-commit mailing list