Skip to content

Commit 8048f0d

Browse files
committed
Short-circuit still going on
1 parent d9be302 commit 8048f0d

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/tooling/docs-builder/Cli/DiffCommands.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@ public async Task<int> ValidateRedirects([Argument] string? path = null, Cancel
4747
var redirectFileName = sourceFile.Name.StartsWith('_') ? "_redirects.yml" : "redirects.yml";
4848
var redirectFileInfo = sourceFile.FileSystem.FileInfo.New(Path.Combine(sourceFile.Directory!.FullName, redirectFileName));
4949

50+
_log.LogInformation($"Parsing redirects file: {redirectFileInfo.FullName}");
5051
var redirectFileParser = new RedirectFile(redirectFileInfo, buildContext);
5152
var redirects = redirectFileParser.Redirects;
5253

@@ -57,6 +58,7 @@ public async Task<int> ValidateRedirects([Argument] string? path = null, Cancel
5758
return collector.Errors;
5859
}
5960

61+
_log.LogInformation("Initializing repository tracker");
6062
IRepositoryTracker tracker = runningOnCi ? new IntegrationGitRepositoryTracker(logFactory.CreateLogger<IntegrationGitRepositoryTracker>(), path) : new LocalGitRepositoryTracker(collector, root, path);
6163
var changed = tracker.GetChangedFiles() as GitChange[] ?? [];
6264

@@ -66,6 +68,7 @@ public async Task<int> ValidateRedirects([Argument] string? path = null, Cancel
6668
foreach (var notFound in changed.DistinctBy(c => c.FilePath).Where(c => c.ChangeType is GitChangeType.Deleted or GitChangeType.Renamed
6769
&& !redirects.ContainsKey(c is RenamedGitChange renamed ? renamed.OldFilePath : c.FilePath)))
6870
{
71+
_log.LogInformation("Checking {FilePath}", notFound.FilePath);
6972
if (notFound is RenamedGitChange renamed)
7073
{
7174
collector.EmitError(redirectFileInfo.Name,

0 commit comments

Comments
 (0)