From 66ebf981a3150d8fa0d93d67bc7c75ac6348383b Mon Sep 17 00:00:00 2001 From: John Erickson Date: Tue, 19 Dec 2023 07:33:59 -0800 Subject: [PATCH] log when targetnames don't match (#24) --- src/Common/MSBuildCachePluginBase.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Common/MSBuildCachePluginBase.cs b/src/Common/MSBuildCachePluginBase.cs index 10bf2bc..16a6b6d 100644 --- a/src/Common/MSBuildCachePluginBase.cs +++ b/src/Common/MSBuildCachePluginBase.cs @@ -340,6 +340,7 @@ private async Task GetCacheResultInnerAsync(BuildRequestData buildR if (!nodeContext.TargetNames.SetEquals(buildRequest.TargetNames)) { + logger.LogMessage($"`TargetNames` does not match for {nodeContext.Id}. `{string.Join(";", nodeContext.TargetNames)}` vs `{string.Join(";", buildRequest.TargetNames)}`."); return CacheResult.IndicateNonCacheHit(CacheResultType.CacheNotApplicable); }