Use a daemon thread to flush logs. (#684)

This commit is contained in:
githubcheng2978 2024-04-26 22:09:36 +08:00 committed by GitHub
parent d37ee271c4
commit ec2a2d4188
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 0 deletions

View File

@ -8,6 +8,7 @@ Release Notes.
* Remove `idleCount` tag in Alibaba Druid meter plugin.
* Fix NPE in handleMethodException method of apm-jdk-threadpool-plugin.
* Support for C3P0 connection pool tracing.
* Use a daemon thread to flush logs.
All issues and pull requests are [here](https://github.com/apache/skywalking/milestone/213?closed=1)

View File

@ -97,6 +97,7 @@ public class FileWriter implements IWriter {
public void handle(Throwable t) {
}
}), "SkywalkingAgent-LogFileWriter");
logFlusherThread.setDaemon(true);
logFlusherThread.start();
}