diff --git a/CHANGELOG.md b/CHANGELOG.md index fa8ca8b8..88c4550f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,10 @@ - Add breadcrumbs automatically when printing to logs ([#522](https://github.com/getsentry/sentry-unreal/pull/522)) +### Fixes + +- The SDK no longer prints symbol uploading related warnings when disabled ([#528](https://github.com/getsentry/sentry-unreal/pull/528)) + ### Dependencies - Bump CLI from v2.29.1 to v2.31.0 ([#512](https://github.com/getsentry/sentry-unreal/pull/512), [#515](https://github.com/getsentry/sentry-unreal/pull/515), [#517](https://github.com/getsentry/sentry-unreal/pull/517), [#524](https://github.com/getsentry/sentry-unreal/pull/524), [#525](https://github.com/getsentry/sentry-unreal/pull/525)) diff --git a/plugin-dev/Source/Sentry/Private/SentrySettings.cpp b/plugin-dev/Source/Sentry/Private/SentrySettings.cpp index 21b2d993..db1df506 100644 --- a/plugin-dev/Source/Sentry/Private/SentrySettings.cpp +++ b/plugin-dev/Source/Sentry/Private/SentrySettings.cpp @@ -128,7 +128,12 @@ void USentrySettings::LoadDebugSymbolsProperties() } else { - UE_LOG(LogSentrySdk, Warning, TEXT("Sentry plugin can't find sentry.properties file")); + bool UploadSymbols = false; + GConfig->GetBool(TEXT("/Script/Sentry.SentrySettings"), TEXT("UploadSymbolsAutomatically"), UploadSymbols, *GetDefaultConfigFilename()); + if (UploadSymbols) + { + UE_LOG(LogSentrySdk, Warning, TEXT("Sentry plugin can't find sentry.properties file")); + } } }