Skip to content

Commit

Permalink
chore: Remove template file copy verbose logs (#9409)
Browse files Browse the repository at this point in the history
chore: remove template file copy verbose logs
  • Loading branch information
filzrev authored and yufeih committed Nov 13, 2023
1 parent 00f0289 commit c1efc34
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/Docfx.Build/TemplateProcessors/TemplateProcessor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -177,13 +177,11 @@ private static void CopyTemplateResourceFile(FileInfo inputFileInfo, string outp
&& inputFileInfo.LastWriteTimeUtc == outputFileInfo.LastWriteTimeUtc; // File's LastWriteTimeUtc are identical.
if (skipFileCopy)
{
Logger.Log(LogLevel.Verbose, $"Skipped resource {filePath} that template dependants on to {outputFileInfo.FullName}");
return;
}
else
{
File.Copy(inputFileInfo.FullName, outputFileInfo.FullName, isOverwrite); // Use `File.Copy` API to preserve LastWriteTime.
Logger.Log(LogLevel.Verbose, $"Saved resource {filePath} that template dependants on to {outputFileInfo.FullName}");
}
}

Expand Down

0 comments on commit c1efc34

Please sign in to comment.