-
-
Notifications
You must be signed in to change notification settings - Fork 8.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[JENKINS-26940] Print message when installer isn't applicable #2598
Conversation
Weak 👎 for the current implementation, 👍 for working on it. I had many installers defined for Tool Installations (up to 16 IIRC for label combinations) + multiple tool definitions. Such per-installer logging would pollute my builds much by expected behavior. My proposal:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
needs change imho
I'd vote for creating a new low-priority bug/improvement. May worth backporting |
Uh, you mean log it in such a way that nobody will ever see it? What's the use of that? Since it's typically something trivial like labels, if you know how to look for the log you know enough to figure out the problem anyway.
How about this -- only print anything when no applicable installer was found, but then, print all of them? Then you'll only have log output in the failure case, i.e. when you need it. |
Fine for me. FINE-level logging is not required in such case, of course |
@oleg-nenashev Please re-review. |
} | ||
} | ||
for (String message : inapplicableInstallersMessages) { | ||
log.getLogger().println(message); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ideally it should be a single message for a correct logging. Especially once we have the External task logging support. Should be fine for now
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We agreed to postpone it for now
* [JENKINS-26940] Print message when installer isn't applicable * [JENKINS-26940] Only print when none found, add test (cherry picked from commit ae29e6b)
Example:
It seems that users occasionally wonder why their installers "don't work". I'd also print the label expression to be extra helpful, but this may be misleading as
isApplicable(…)
can be overridden.