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))
|
||||
{
|
||||
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;
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user