mirror of
https://github.com/wabbajack-tools/wabbajack.git
synced 2024-08-30 18:42:17 +00:00
Fix Metrics and ListValidation Logging
This commit is contained in:
parent
c26e89806d
commit
6ee0703ad6
@ -166,6 +166,7 @@ namespace Wabbajack.CacheServer
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
Utils.Log(ex.ToString());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -13,7 +13,7 @@ namespace Wabbajack.Common
|
||||
{
|
||||
if (!Utils.HaveEncryptedJson(Consts.MetricsKeyHeader))
|
||||
{
|
||||
Utils.ToEcryptedJson(Consts.MetricsKeyHeader, Utils.MakeRandomKey());
|
||||
Utils.ToEcryptedJson(Utils.MakeRandomKey(), Consts.MetricsKeyHeader);
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
@ -27,10 +27,14 @@ namespace Wabbajack.Common
|
||||
var client = new HttpClient();
|
||||
try
|
||||
{
|
||||
client.DefaultRequestHeaders.Add(Consts.MetricsKeyHeader, Utils.FromEncryptedJson<string>(Consts.MetricsKeyHeader));
|
||||
client.DefaultRequestHeaders.Add(Consts.MetricsKeyHeader,
|
||||
Utils.FromEncryptedJson<string>(Consts.MetricsKeyHeader));
|
||||
await client.GetAsync($"http://build.wabbajack.org/metrics/{action}/{value}");
|
||||
}
|
||||
catch (Exception) { }
|
||||
catch (Exception ex)
|
||||
{
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user