File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
src/Exceptionless.Insulation/HealthChecks Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -23,9 +23,9 @@ public async Task<HealthCheckResult> CheckHealthAsync(HealthCheckContext context
23
23
try {
24
24
var response = await _config . Client . PingAsync ( ct : cancellationToken ) . AnyContext ( ) ;
25
25
if ( ! response . IsValid )
26
- return HealthCheckResult . Unhealthy ( $ "Elasticsearch Ping Failed: { _config . Options . ServerUrl } - { response . OriginalException ? . Message } ", response . OriginalException ) ;
26
+ return HealthCheckResult . Unhealthy ( "Elasticsearch Ping Failed" , response . OriginalException ) ;
27
27
} catch ( Exception ex ) {
28
- return HealthCheckResult . Unhealthy ( $ "Elasticsearch Not Working: { _config . Options . ServerUrl } - { ex . Message } ", ex ) ;
28
+ return HealthCheckResult . Unhealthy ( "Elasticsearch Not Working" , ex ) ;
29
29
} finally {
30
30
sw . Stop ( ) ;
31
31
_logger . LogTrace ( "Checking Elasticsearch took {Duration:g}" , sw . Elapsed ) ;
You can’t perform that action at this time.
0 commit comments