From 7ca0eab4d7e23bcb6eb525a3d16f16a2ce661a8e Mon Sep 17 00:00:00 2001 From: "waffle.lord" Date: Mon, 25 Mar 2024 14:40:09 -0400 Subject: [PATCH] slightly more logging for hashes --- SPTInstaller/Helpers/DownloadCacheHelper.cs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/SPTInstaller/Helpers/DownloadCacheHelper.cs b/SPTInstaller/Helpers/DownloadCacheHelper.cs index b6b318b..533dc7e 100644 --- a/SPTInstaller/Helpers/DownloadCacheHelper.cs +++ b/SPTInstaller/Helpers/DownloadCacheHelper.cs @@ -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; } }