disable token info in traces. (#56780)
authorManish Godse <61718172+mangod9@users.noreply.github.com>
Wed, 4 Aug 2021 02:01:45 +0000 (19:01 -0700)
committerGitHub <noreply@github.com>
Wed, 4 Aug 2021 02:01:45 +0000 (19:01 -0700)
Though token+offset is useful for certain scenarios, they might not be usable for majority of scenarios. So disabling them by default.

src/libraries/System.Private.CoreLib/src/System/LocalAppContextSwitches.cs

index ed450d7..37e2265 100644 (file)
@@ -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;