Skip to content

Commit 21b247e

Browse files
committed
Disable Trace level log messages
1 parent c77a7bc commit 21b247e

File tree

1 file changed

+2
-1
lines changed
  • src/Microsoft.VisualStudio.ProjectSystem.Managed/ProjectSystem/HotReload

1 file changed

+2
-1
lines changed

src/Microsoft.VisualStudio.ProjectSystem.Managed/ProjectSystem/HotReload/HotReloadLogger.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,8 @@ namespace Microsoft.VisualStudio.ProjectSystem.HotReload;
1010
internal sealed class HotReloadLogger(IHotReloadDiagnosticOutputService service, string projectName, string variant, int sessionInstanceId, string categoryName) : ILogger
1111
{
1212
public bool IsEnabled(LogLevel logLevel)
13-
=> true;
13+
// Do not enable Trace level logging as it affects the application output
14+
=> logLevel >= LogLevel.Debug;
1415

1516
public void Log<TState>(LogLevel logLevel, EventId eventId, TState state, Exception? exception, Func<TState, Exception?, string> formatter)
1617
{

0 commit comments

Comments
 (0)