slightly more logging for hashes

This commit is contained in:
IsWaffle 2024-03-25 14:40:09 -04:00
parent e17441a1a9
commit 7ca0eab4d7

View File

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