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

This commit is contained in:
wuwen 2021-07-29 16:52:52 +08:00 committed by GitHub
parent ffc69dc6f3
commit 85669fb40f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 8 additions and 2 deletions

View File

@ -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

View File

@ -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