Add logging to attribute decoding failures

This commit is contained in:
Tamas Vajk
2020-12-07 11:14:30 +01:00
parent db426c1ffe
commit 8e6e4189b3

View File

@@ -45,7 +45,8 @@ namespace Semmle.Extraction.CIL.Entities
}
catch (Exception exc)
{
// Attribute decoding is only partial at this stage.
Cx.Cx.Extractor.Logger.Log(Util.Logging.Severity.Info,
$"Attribute decoding is partial. Decoding attribute {constructor.DeclaringType.GetQualifiedName()} failed on {@object}.");
yield break;
}