提交 617e5522 编写于 作者: J Jesse Glick

Display thread associated with ThisIsHowItsLoaded when logging at FINEST.

Some loggers may show the thread name anyway, but /log/* in the UI at least does not.
And recent versions of Jenkins are being improved to capture lots of context in the thread name;
an unreleased improvement in Stapler includes the Jelly views being rendered.
上级 38ff4f08
......@@ -217,8 +217,9 @@ public final class RunMap<R extends Run<?,R>> extends AbstractLazyLoadRunMap<R>
try {
R b = cons.create(d);
b.onLoad();
if (LOGGER.isLoggable(FINEST))
LOGGER.log(FINEST,"Loaded " + b.getFullDisplayName(),new ThisIsHowItsLoaded());
if (LOGGER.isLoggable(FINEST)) {
LOGGER.log(FINEST, "Loaded " + b.getFullDisplayName() + " in " + Thread.currentThread().getName(), new ThisIsHowItsLoaded());
}
return b;
} catch (Run.InvalidDirectoryNameException x) {
Level lvl;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册