Skip to content

Commit 392881b

Browse files
committed
Reduce logging
1 parent 77203ce commit 392881b

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

SequenceAnalysis/api-src/org/labkey/api/sequenceanalysis/run/AbstractCommandWrapper.java

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ abstract public class AbstractCommandWrapper implements CommandWrapper
4444
private File _outputDir = null;
4545
private File _workingDir = null;
4646
private Logger _log = null;
47+
private boolean _logPath = false;
4748
private Level _logLevel = Level.DEBUG;
4849
private boolean _warnNonZeroExits = true;
4950
private boolean _throwNonZeroExits = true;
@@ -229,11 +230,19 @@ private void setPath(ProcessBuilder pb)
229230
path = fileExe.getParent() + File.pathSeparatorChar + path;
230231
}
231232

232-
getLogger().debug("using path: " + path);
233+
if (_logPath)
234+
{
235+
getLogger().debug("using path: " + path);
236+
}
233237
pb.environment().put("PATH", path);
234238
}
235239
}
236240

241+
public void setLogPath(boolean logPath)
242+
{
243+
_logPath = logPath;
244+
}
245+
237246
public void setOutputDir(File outputDir)
238247
{
239248
_outputDir = outputDir;

0 commit comments

Comments
 (0)