chore: 增加 ResourceUpdater 日志

This commit is contained in:
uye
2024-07-10 11:25:50 +08:00
parent 2ba2db3c5a
commit f761605bfc

View File

@@ -24,12 +24,15 @@ using MaaWpfGui.Constants;
using MaaWpfGui.Helper;
using MaaWpfGui.Main;
using MaaWpfGui.ViewModels;
using Serilog;
using Stylet;
namespace MaaWpfGui.Models
{
public static class ResourceUpdater
{
private static readonly ILogger _logger = Log.ForContext("SourceContext", "ResourceUpdater");
private const string MaaResourceVersion = "resource/version.json";
private const string VersionChecksTemp = MaaResourceVersion + ".checks.tmp";
@@ -371,6 +374,11 @@ namespace MaaWpfGui.Models
}
while (retryCount++ < maxRetryTime);
if (updateResult == UpdateResult.Failed)
{
_logger.Warning($"Failed to get file, url: {url}, saveTo: {saveTo}");
}
return updateResult;
}