slightly more logging for hashes
This commit is contained in:
parent
e17441a1a9
commit
7ca0eab4d7
@ -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;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user