slightly more logging for hashes

This commit is contained in:
IsWaffle 2024-03-25 14:40:09 -04:00
parent a83cc0faee
commit c63bfa89ff

View File

@ -66,13 +66,16 @@ public static class DownloadCacheHelper
if (FileHashHelper.CheckHash(cacheFile, expectedHash))
{
fileInCache = cacheFile;
Log.Information("Hashes MATCH");
return true;
}
Log.Warning("Hashes DO NOT MATCH");
return false;
}
catch
catch(Exception ex)
{
Log.Error(ex, "Something went wrong during hashing");
return false;
}
}