Skip to content

Commit

Permalink
Change health/check message from "CosmosDB" to "data store" (#94)
Browse files Browse the repository at this point in the history
* Change health/check message from "CosmosDB" to "data store"

* Addressed PR comments
  • Loading branch information
cunninghamjc authored Oct 12, 2018
1 parent 75ac8d5 commit d7c5e54
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -57,17 +57,17 @@ public CosmosHealthCheck(
{
try
{
// Make a non-invasive query to CosmosDB to make sure we can reach the database.
// Make a non-invasive query to make sure we can reach the data store.

await _testProvider.PerformTest(_documentClient.Value, _configuration);

return HealthCheckResult.Healthy("Successfully connected to CosmosDB.");
return HealthCheckResult.Healthy("Successfully connected to the data store.");
}
catch (Exception ex)
{
_logger.LogWarning(ex, "Failed to connect to CosmosDB.");
_logger.LogWarning(ex, "Failed to connect to the data store.");

return HealthCheckResult.Unhealthy("Failed to connect to CosmosDB.");
return HealthCheckResult.Unhealthy("Failed to connect to the data store.");
}
}
}
Expand Down

0 comments on commit d7c5e54

Please sign in to comment.