diff --git a/build/common.props b/build/common.props index 6dc8849e2..cc36ebfcc 100644 --- a/build/common.props +++ b/build/common.props @@ -3,7 +3,7 @@ 3.0.0$(VersionSuffix) 5.0.0$(VersionSuffix) - 4.8.0$(VersionSuffix) + 4.8.1$(VersionSuffix) 3.2.0$(VersionSuffix) 3.0.0$(VersionSuffix) 3.0.3$(VersionSuffix) diff --git a/src/WebJobs.Extensions.CosmosDB/Trigger/CosmosDBMetricsProvider.cs b/src/WebJobs.Extensions.CosmosDB/Trigger/CosmosDBMetricsProvider.cs index ac01c3750..31653642c 100644 --- a/src/WebJobs.Extensions.CosmosDB/Trigger/CosmosDBMetricsProvider.cs +++ b/src/WebJobs.Extensions.CosmosDB/Trigger/CosmosDBMetricsProvider.cs @@ -128,6 +128,10 @@ public async Task GetMetricsAsync() _logger.LogWarning(Events.OnScaling, errormsg); } + catch (Exception e) + { + _logger.LogWarning(Events.OnScaling, "Exception occurred while obtaining metrics for CosmosDB {0}: {1}.", e.GetType().ToString(), e.ToString()); + } return new CosmosDBTriggerMetrics {