mirror of
https://github.com/MaaAssistantArknights/MaaAssistantArknights.git
synced 2026-07-15 17:30:27 +08:00
chore: 增加 ResourceUpdater 日志
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user