-
Notifications
You must be signed in to change notification settings - Fork 25.2k
Convert logging related gradle classes to java #44771
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
Conversation
This commit converts the logging related classes (only used for vagrant) to java from groovy. relates elastic#34459
Pinging @elastic/es-core-infra |
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.
Couple minor comments but otherwise LGTM 👍
|
||
@Override | ||
public void close() { | ||
progressLogger.completed(); |
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 might want to call flush()
here just in case the parent caller doesn't. Same goes with the other logger impl.
* There is a Tap4j project but we can't use it because it wants to parse the | ||
* entire TAP stream at once and won't parse it stream-wise. | ||
*/ | ||
public class TapLoggerOutputStream extends LoggingOutputStream { |
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.
I had to do some googling to find out what "tap" is. Can we perhaps elaborate here in the javadoc on that, and even link to https://testanything.org?
} else { | ||
// otherwise extend the buffer | ||
final int newBufferLength = buffer.length + DEFAULT_BUFFER_LENGTH; | ||
final byte[] newBuffer = new byte[newBufferLength]; |
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.
This can be simplified a bit with Arrays.copyOf()
This commit converts the logging related classes (only used for vagrant) to java from groovy. relates #34459
This commit converts the logging related classes (only used for vagrant)
to java from groovy.
relates #34459