From 9e6095ab68a1b42219deae70ead2a69325cc0706 Mon Sep 17 00:00:00 2001 From: goat Date: Wed, 18 Mar 2020 16:03:51 +0900 Subject: [PATCH] fix: add logging to plugin update --- Dalamud/Plugin/PluginInstallerWindow.cs | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/Dalamud/Plugin/PluginInstallerWindow.cs b/Dalamud/Plugin/PluginInstallerWindow.cs index 2c56108b6..a857524f3 100644 --- a/Dalamud/Plugin/PluginInstallerWindow.cs +++ b/Dalamud/Plugin/PluginInstallerWindow.cs @@ -61,6 +61,8 @@ namespace Dalamud.Plugin } public void UpdatePlugins() { + Log.Information("Starting plugin update..."); + try { var pluginsDirectory = new DirectoryInfo(this.pluginDirectory); this.installStatus = PluginInstallStatus.Success; @@ -95,6 +97,8 @@ namespace Dalamud.Plugin if (remoteInfo.AssemblyVersion != info.AssemblyVersion) { + Log.Information("Eligible for update: {0}", remoteInfo.InternalName); + foreach (var sortedVersion in sortedVersions) { File.Create(Path.Combine(sortedVersion.FullName, ".disabled")); } @@ -107,6 +111,8 @@ namespace Dalamud.Plugin } InstallPlugin(remoteInfo); + } else { + Log.Information("Up to date: {0}", remoteInfo.InternalName); } } } @@ -115,6 +121,8 @@ namespace Dalamud.Plugin Log.Error(e, "Plugin update failed hard."); this.installStatus = PluginInstallStatus.Fail; } + + Log.Information("Plugin update OK."); } private void InstallPlugin(PluginDefinition definition) {