未验证 提交 85669fb4 编写于 作者: W wuwen 提交者: GitHub

Fix `GRPCLogClientAppender` no context warning. (#7385)

上级 ffc69dc6
......@@ -40,6 +40,7 @@ Release Notes.
* Update agent plugin for ElasticJob GA version
* Remove the logic of generating instance name in `KafkaServiceManagementServiceClient` class.
* Improve `okhttp` plugin performance by optimizing Class.getDeclaredField().
* Fix `GRPCLogClientAppender` no context warning.
#### OAP-Backend
......
......@@ -19,17 +19,22 @@
package org.apache.skywalking.apm.toolkit.log.logback.v1.x.log;
import ch.qos.logback.core.OutputStreamAppender;
import java.io.IOException;
import java.io.OutputStream;
public class GRPCLogClientAppender<E> extends OutputStreamAppender<E> {
public GRPCLogClientAppender() {
}
@Override
public void start() {
setOutputStream(new OutputStream() {
@Override
public void write(final int b) throws IOException {
public void write(final int b) {
// discarded
}
});
super.start();
}
@Override
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册