Skip to content

Commit

Permalink
added information log
Browse files Browse the repository at this point in the history
  • Loading branch information
daveMueller committed Feb 5, 2021
1 parent 850f563 commit 3f11164
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/coverlet.core/Instrumentation/Instrumenter.cs
Original file line number Diff line number Diff line change
Expand Up @@ -510,6 +510,8 @@ private void InstrumentType(TypeDefinition type)

private void InstrumentMethod(MethodDefinition method)
{
_logger.LogInformation($"Instrumenting method '{method.FullName}' in module '{_module}'.");

var sourceFile = method.DebugInformation.SequencePoints.Select(s => _sourceRootTranslator.ResolveFilePath(s.Document.Url)).FirstOrDefault();

if (string.IsNullOrEmpty(sourceFile)) return;
Expand Down

0 comments on commit 3f11164

Please sign in to comment.