-
Notifications
You must be signed in to change notification settings - Fork 389
Flow ILogger
to InstrumentationHelper
#559
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
wait for #566 to allow internal helper interfaces access. |
@MarcoRossignoli Could you explain this in a bit more detail. I'm not sure if I get it right. Just inject ILogger and log a message in this catch block? |
Yup Dave, this class is the core of instrumentation and sometimes it's very useful log behaviour, so for now the work here is only flow |
I'm currently working on this and think about the message to be logged? |
A warning like "BadImageFormatException during MetadataReaderProvider.FromPortablePdbStream in InstrumentationHelper .PortablePdbHasLocalSource, unable to check if module has got local source"
That is only the procedure to automatically exclude dll that we're "SURE" that we cannot instrument, it's a new feature and wasn't present in past, so my idea is to "preserve" old semantic and go on like the check doesn't exist. Coverlet is used also with .NET Framework(not only core) coverage and pdb could not be portable. MetadataReaderProvider.FromPortablePdbStream is not part of Cecil that could work also with non portable pdb(btw I did't check, but the general idea is to preserve old behaviour if I'm not sure of new one). |
We should flow the logger to instrumentation helper and emit important log warning here
https://github.com/tonerdo/coverlet/blob/82a920864a157bfaa9417540a20a4c03b336f1d0/src/coverlet.core/Helpers/InstrumentationHelper.cs#L155-L159
cc: @tonerdo @petli
The text was updated successfully, but these errors were encountered: