Skip to content

Commit 2041523

Browse files
committed
trace2: remove warning from tryparsesettings
Remove warning about being unable to set up tracing from Trace2 TryParseSettings method. This method should just check to see whether TRACE2 is enabled - if it is not, it does not need to warn the user, as we only collect traces from those who actively choose to opt in.
1 parent fb1942a commit 2041523

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

src/shared/Core/Trace2.cs

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -200,11 +200,6 @@ private void TryParseSettings(TextWriter error, IFileSystem fileSystem)
200200
}
201201
}
202202
}
203-
204-
if (_writers.Count == 0)
205-
{
206-
error.WriteLine("warning: unable to set up TRACE2 tracing. No traces will be written.");
207-
}
208203
}
209204

210205
private void WriteVersion(

0 commit comments

Comments
 (0)