mirror of
https://github.com/plan-player-analytics/Plan.git
synced 2025-02-05 16:30:24 +08:00
Fixed ErrorContext of some errors being omitted
This commit is contained in:
parent
46e486e00c
commit
5fae224ef6
@ -94,7 +94,7 @@ public class PluginErrorLogger implements ErrorLogger {
|
|||||||
}
|
}
|
||||||
|
|
||||||
private void mergeAdditionalContext(Throwable throwable, ErrorContext context) {
|
private void mergeAdditionalContext(Throwable throwable, ErrorContext context) {
|
||||||
Throwable cause = throwable.getCause();
|
Throwable cause = throwable;
|
||||||
while (cause != null) {
|
while (cause != null) {
|
||||||
if (cause instanceof ExceptionWithContext) {
|
if (cause instanceof ExceptionWithContext) {
|
||||||
((ExceptionWithContext) cause).getContext().ifPresent(context::merge);
|
((ExceptionWithContext) cause).getContext().ifPresent(context::merge);
|
||||||
|
Loading…
Reference in New Issue
Block a user