Improve logging for EventSource.WriteEvent parameter mismatch (#25533)
commit1b48b446618347bce078e1608fd3aa0239e1d7d7
authorobligaron <obligaron@live.com>
Tue, 10 Sep 2019 20:22:53 +0000 (10 22:22 +0200)
committerLarry Ewing <lewing@microsoft.com>
Thu, 12 Sep 2019 18:27:35 +0000 (12 13:27 -0500)
tree184cf134348e68999f5696113b40bcfbed2744ef
parent72405f68af0d7684c3601d0d8b2c63b966022622
Improve logging for EventSource.WriteEvent parameter mismatch (#25533)

* improve logging for EventSource.WriteEvent

* Fix IndexOutOfRangeException in SerializeEventArgs when incorrect arguments got passed

* simplify arg-check; remove nullable-todo

* switch from Debugger.Log to ReportOutOfBandMessage

* Remove unused flush-Paramater from ReportOutOfBandMessage

* fix parameter type nullable-check for reference-types

* fix parameter type nullable-check for nullable-types

Signed-off-by: dotnet-bot <dotnet-bot@microsoft.com>
netcore/System.Private.CoreLib/shared/System/Diagnostics/Tracing/DiagnosticCounter.cs
netcore/System.Private.CoreLib/shared/System/Diagnostics/Tracing/EventSource.cs