From 5ef31a96ea3a25a9bd924f153789f58cdf69de2f Mon Sep 17 00:00:00 2001 From: Kukks Date: Thu, 28 Jul 2022 15:31:34 +0200 Subject: [PATCH] Provide error when plugin gets disabled due to crash --- BTCPayServer/Program.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/BTCPayServer/Program.cs b/BTCPayServer/Program.cs index 2497b046f..b2c7b4192 100644 --- a/BTCPayServer/Program.cs +++ b/BTCPayServer/Program.cs @@ -83,6 +83,7 @@ namespace BTCPayServer } catch (Exception e) when (PluginManager.IsExceptionByPlugin(e)) { + logs.Configuration.LogError(e, $"Disabling plugin {e.Source} as it crashed on startup"); var pluginDir = new DataDirectories().Configure(conf).PluginDir; PluginManager.DisablePlugin(pluginDir, e.Source); }