Fix `GRPCLogClientAppender` no context warning. (#7385)
This commit is contained in:
parent
ffc69dc6f3
commit
85669fb40f
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue