Skip to content

Commit

Permalink
[Fixed JENKINS-8614] ProcessTreeTest fails on Windows
Browse files Browse the repository at this point in the history
Add exception handler for getEnvironmentVariables().
  • Loading branch information
lmwang committed Apr 5, 2013
1 parent 97c28e0 commit 4709490
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion core/src/main/java/hudson/util/ProcessTree.java
Expand Up @@ -67,6 +67,7 @@

import static com.sun.jna.Pointer.NULL;
import static hudson.util.jna.GNUCLibrary.LIBC;
import static java.util.logging.Level.FINE;
import static java.util.logging.Level.FINER;
import static java.util.logging.Level.FINEST;

Expand Down Expand Up @@ -431,7 +432,7 @@ public synchronized EnvVars getEnvironmentVariables() {
env = new EnvVars(p.getEnvironmentVariables());
} catch (WinpException e)
{
LOGGER.log(FINEST, "Failed to get environment variable ", e);
LOGGER.log(FINE, "Failed to get environment variable ", e);
}
}
return env;
Expand Down

0 comments on commit 4709490

Please sign in to comment.