Skip to content

Commit 8e6e418

Browse files
committed
Add logging to attribute decoding failures
1 parent db426c1 commit 8e6e418

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

csharp/extractor/Semmle.Extraction.CIL/Entities/Attribute.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,8 @@ public override IEnumerable<IExtractionProduct> Contents
4545
}
4646
catch (Exception exc)
4747
{
48-
// Attribute decoding is only partial at this stage.
48+
Cx.Cx.Extractor.Logger.Log(Util.Logging.Severity.Info,
49+
$"Attribute decoding is partial. Decoding attribute {constructor.DeclaringType.GetQualifiedName()} failed on {@object}.");
4950
yield break;
5051
}
5152

0 commit comments

Comments
 (0)