Skip to content

Commit

Permalink
Merge pull request #298 from jglick/dumpThreads-debug
Browse files Browse the repository at this point in the history
Do not periodically JenkinsRule.dumpThreads when debugging
  • Loading branch information
jglick authored Apr 14, 2021
2 parents 9d0c8b5 + 962ad81 commit 6a685e4
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/main/java/org/jvnet/hudson/test/RealJenkinsRule.java
Original file line number Diff line number Diff line change
Expand Up @@ -506,7 +506,9 @@ public static void register() throws Exception {
});
JenkinsRule._configureUpdateCenter(j);
System.err.println("RealJenkinsRule ready");
Timer.get().scheduleAtFixedRate(JenkinsRule::dumpThreads, 2, 2, TimeUnit.MINUTES);
if (!new DisableOnDebug(null).isDebugging()) {
Timer.get().scheduleAtFixedRate(JenkinsRule::dumpThreads, 2, 2, TimeUnit.MINUTES);
}
}
@Override public String getUrlName() {
return "RealJenkinsRule";
Expand Down

0 comments on commit 6a685e4

Please sign in to comment.