From 55cea645dc52a6f7d5e5105846ec49bc7fda2a40 Mon Sep 17 00:00:00 2001 From: Manish Godse <61718172+mangod9@users.noreply.github.com> Date: Tue, 3 Aug 2021 19:01:45 -0700 Subject: [PATCH] disable token info in traces. (#56780) Though token+offset is useful for certain scenarios, they might not be usable for majority of scenarios. So disabling them by default. --- .../System.Private.CoreLib/src/System/LocalAppContextSwitches.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/libraries/System.Private.CoreLib/src/System/LocalAppContextSwitches.cs b/src/libraries/System.Private.CoreLib/src/System/LocalAppContextSwitches.cs index ed450d7..37e2265 100644 --- a/src/libraries/System.Private.CoreLib/src/System/LocalAppContextSwitches.cs +++ b/src/libraries/System.Private.CoreLib/src/System/LocalAppContextSwitches.cs @@ -54,7 +54,8 @@ namespace System if (s_showILOffset < 0) return false; if (s_showILOffset > 0) return true; - bool isSwitchEnabled = AppContextConfigHelper.GetBooleanConfig("Switch.System.Diagnostics.StackTrace.ShowILOffsets", true); + // Disabled by default. + bool isSwitchEnabled = AppContextConfigHelper.GetBooleanConfig("Switch.System.Diagnostics.StackTrace.ShowILOffsets", false); s_showILOffset = isSwitchEnabled ? 1 : -1; return isSwitchEnabled; -- 2.7.4