Skip to content
This repository was archived by the owner on Dec 5, 2024. It is now read-only.

Commit 38cf7b4

Browse files
Tweaking logs
1 parent 67893ea commit 38cf7b4

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/GitHub.Api/Installer/GitInstaller.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -152,22 +152,22 @@ private bool IsGitExtracted()
152152
{
153153
if (!installDetails.GitInstallPath.DirectoryExists())
154154
{
155-
Logger.Trace("{0} does not exist", installDetails.GitInstallPath);
155+
Logger.Warning("{0} does not exist", installDetails.GitInstallPath);
156156
return false;
157157
}
158158

159159
var fileListMD5 = environment.FileSystem.CalculateFolderMD5(installDetails.GitInstallPath, false);
160160
if (!fileListMD5.Equals(GitInstallDetails.FileListMD5, StringComparison.InvariantCultureIgnoreCase))
161161
{
162-
Logger.Trace("MD5 {0} does not match expected {1}", fileListMD5, GitInstallDetails.FileListMD5);
162+
Logger.Warning("Path {0} has MD5 {1} expected {2}", installDetails.GitInstallPath, fileListMD5, GitInstallDetails.FileListMD5);
163163
return false;
164164
}
165165

166166
var calculateMd5 = environment.FileSystem.CalculateFileMD5(installDetails.GitLfsExecPath);
167167
var md5 = environment.IsWindows ? GitInstallDetails.WindowsGitLfsExecutableMD5 : GitInstallDetails.MacGitLfsExecutableMD5;
168168
if (!md5.Equals(calculateMd5, StringComparison.InvariantCultureIgnoreCase))
169169
{
170-
Logger.Trace("{0} has MD5 {1} expected {2}", installDetails.GitLfsExecPath, calculateMd5, md5);
170+
Logger.Warning("Path {0} has MD5 {1} expected {2}", installDetails.GitLfsExecPath, calculateMd5, md5);
171171
return false;
172172
}
173173

0 commit comments

Comments
 (0)