2727#include " ProfileEntry.h"
2828#include " FolderEntry.h"
2929#include " MatchProfilesEntry.h"
30- #include " WtExeUtils.h"
3130
3231using namespace winrt ::Windows::Foundation::Collections;
3332using namespace winrt ::Windows::ApplicationModel::AppExtensions;
@@ -1671,22 +1670,10 @@ void CascadiaSettings::LogSettingChanges(bool isJsonLoad) const
16711670 changes.insert (change);
16721671 }
16731672
1674- #if defined(WT_BRANDING_RELEASE)
1675- constexpr uint8_t branding = 3 ;
1676- #elif defined(WT_BRANDING_PREVIEW)
1677- constexpr uint8_t branding = 2 ;
1678- #elif defined(WT_BRANDING_CANARY)
1679- constexpr uint8_t branding = 1 ;
1680- #else
1681- constexpr uint8_t branding = 0 ;
1682- #endif
1683- const uint8_t distribution = IsPackaged () ? 2 :
1684- IsPortableMode () ? 1 :
1685- 0 ;
1686-
16871673 // report changes
16881674 for (const auto & change : changes)
16891675 {
1676+ #ifndef _DEBUG
16901677 // A `isJsonLoad ? "JsonSettingsChanged" : "UISettingsChanged"`
16911678 // would be nice, but that apparently isn't allowed in the macro below.
16921679 // Also, there's guidance to not send too much data all in one event,
@@ -1696,9 +1683,7 @@ void CascadiaSettings::LogSettingChanges(bool isJsonLoad) const
16961683 TraceLoggingWrite (g_hSettingsModelProvider,
16971684 " JsonSettingsChanged" ,
16981685 TraceLoggingDescription (" Event emitted when settings.json change" ),
1699- TraceLoggingValue (change.data (), " Setting" ),
1700- TraceLoggingValue (branding, " Branding" ),
1701- TraceLoggingValue (distribution, " Distribution" ),
1686+ TraceLoggingValue (change.data ()),
17021687 TraceLoggingKeyword (MICROSOFT_KEYWORD_MEASURES),
17031688 TelemetryPrivacyDataTag (PDT_ProductAndServiceUsage));
17041689 }
@@ -1707,11 +1692,14 @@ void CascadiaSettings::LogSettingChanges(bool isJsonLoad) const
17071692 TraceLoggingWrite (g_hSettingsModelProvider,
17081693 " UISettingsChanged" ,
17091694 TraceLoggingDescription (" Event emitted when settings change via the UI" ),
1710- TraceLoggingValue (change.data (), " Setting" ),
1711- TraceLoggingValue (branding, " Branding" ),
1712- TraceLoggingValue (distribution, " Distribution" ),
1695+ TraceLoggingValue (change.data ()),
17131696 TraceLoggingKeyword (MICROSOFT_KEYWORD_MEASURES),
17141697 TelemetryPrivacyDataTag (PDT_ProductAndServiceUsage));
17151698 }
1699+ #else
1700+ OutputDebugStringA (isJsonLoad ? " JsonSettingsChanged - " : " UISettingsChanged - " );
1701+ OutputDebugStringA (change.data ());
1702+ OutputDebugStringA (" \n " );
1703+ #endif // !_DEBUG
17161704 }
17171705}
0 commit comments