diff --git a/CHANGELOG.md b/CHANGELOG.md index c3ef4951..fc13ac10 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,7 @@ FlagOverrides LocalDictionary(IDictionary dictionary, bool watchChanges, OverrideBehaviour overrideBehaviour) ``` Where the `watchChanges` parameter indicates whether the SDK should rebuild the overrides upon each read to keep track of the source dictionary's changes. +- Fix config fetcher-related error logging to include exception in the log if any. ### 7.1.0 diff --git a/src/ConfigCatClient/HttpConfigFetcher.cs b/src/ConfigCatClient/HttpConfigFetcher.cs index c127cd5e..d7915292 100644 --- a/src/ConfigCatClient/HttpConfigFetcher.cs +++ b/src/ConfigCatClient/HttpConfigFetcher.cs @@ -165,7 +165,7 @@ private async ValueTask FetchInternalAsync(ProjectConfig lastConfig errorException = ex; } - this.log.Error(errorMessage); + this.log.Error(errorMessage, errorException); this.ReInitializeHttpClient(); return FetchResult.Failure(lastConfig, errorMessage, errorException); }