From 733fb82107d738413cfdb40277728e9cb203320e Mon Sep 17 00:00:00 2001 From: Archi Date: Sat, 9 Mar 2024 22:17:41 +0100 Subject: [PATCH] Update PluginsCore.cs --- ArchiSteamFarm/Plugins/PluginsCore.cs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/ArchiSteamFarm/Plugins/PluginsCore.cs b/ArchiSteamFarm/Plugins/PluginsCore.cs index 5a7819298..be611b840 100644 --- a/ArchiSteamFarm/Plugins/PluginsCore.cs +++ b/ArchiSteamFarm/Plugins/PluginsCore.cs @@ -678,7 +678,7 @@ public static class PluginsCore { continue; } - Console.WriteLine($"Checking update for {plugin.Name} plugin..."); + ASF.ArchiLogger.LogGenericInfo($"Checking update for {plugin.Name} plugin..."); ReleaseResponse? releaseResponse = await GitHub.GetLatestRelease(repoName, stable).ConfigureAwait(false); @@ -689,12 +689,12 @@ public static class PluginsCore { Version newVersion = new(releaseResponse.Tag); if (plugin.Version >= newVersion) { - Console.WriteLine($"No update available for {plugin.Name} plugin: {plugin.Version} >= {newVersion}."); + ASF.ArchiLogger.LogGenericInfo($"No update available for {plugin.Name} plugin: {plugin.Version} >= {newVersion}."); continue; } - Console.WriteLine($"Updating {plugin.Name} plugin from version {plugin.Version} to {newVersion}..."); + ASF.ArchiLogger.LogGenericInfo($"Updating {plugin.Name} plugin from version {plugin.Version} to {newVersion}..."); ReleaseAsset? asset = await plugin.GetTargetReleaseAsset(asfVersion, SharedInfo.BuildInfo.Variant, newVersion, releaseResponse.Assets).ConfigureAwait(false); @@ -744,7 +744,7 @@ public static class PluginsCore { restartNeeded = true; - Console.WriteLine($"Updating {plugin.Name} plugin has succeeded, the changes will be loaded on the next ASF launch."); + ASF.ArchiLogger.LogGenericInfo($"Updating {plugin.Name} plugin has succeeded, the changes will be loaded on the next ASF launch."); } catch (Exception e) { ASF.ArchiLogger.LogGenericException(e); }