From 6ee0703ad6cfbd7866cb3664a107c0d7f034a84c Mon Sep 17 00:00:00 2001 From: Timothy Baldridge Date: Sat, 4 Jan 2020 16:47:51 -0700 Subject: [PATCH] Fix Metrics and ListValidation Logging --- Wabbajack.CacheServer/ListValidationService.cs | 1 + Wabbajack.Common/Metrics.cs | 10 +++++++--- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/Wabbajack.CacheServer/ListValidationService.cs b/Wabbajack.CacheServer/ListValidationService.cs index fa7ae972..d5e4f73b 100644 --- a/Wabbajack.CacheServer/ListValidationService.cs +++ b/Wabbajack.CacheServer/ListValidationService.cs @@ -166,6 +166,7 @@ namespace Wabbajack.CacheServer } catch (Exception ex) { + Utils.Log(ex.ToString()); } } } diff --git a/Wabbajack.Common/Metrics.cs b/Wabbajack.Common/Metrics.cs index 55bbb8a4..21043baa 100644 --- a/Wabbajack.Common/Metrics.cs +++ b/Wabbajack.Common/Metrics.cs @@ -13,7 +13,7 @@ namespace Wabbajack.Common { if (!Utils.HaveEncryptedJson(Consts.MetricsKeyHeader)) { - Utils.ToEcryptedJson(Consts.MetricsKeyHeader, Utils.MakeRandomKey()); + Utils.ToEcryptedJson(Utils.MakeRandomKey(), Consts.MetricsKeyHeader); } } /// @@ -27,10 +27,14 @@ namespace Wabbajack.Common var client = new HttpClient(); try { - client.DefaultRequestHeaders.Add(Consts.MetricsKeyHeader, Utils.FromEncryptedJson(Consts.MetricsKeyHeader)); + client.DefaultRequestHeaders.Add(Consts.MetricsKeyHeader, + Utils.FromEncryptedJson(Consts.MetricsKeyHeader)); await client.GetAsync($"http://build.wabbajack.org/metrics/{action}/{value}"); } - catch (Exception) { } + catch (Exception ex) + { + + } } } }