add reportError (#6509)

This commit is contained in:
李文广 2021-03-08 15:02:45 +08:00 committed by GitHub
parent e9196b7e20
commit 254f755a5d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -84,6 +84,7 @@ public class JVMMetricsSender implements BootService, Runnable, GRPCChannelListe
}
} catch (Throwable t) {
LOGGER.error(t, "send JVM metrics to Collector fail.");
ServiceManager.INSTANCE.findService(GRPCChannelManager.class).reportError(t);
}
}
}