Provide error when plugin gets disabled due to crash

This commit is contained in:
Kukks 2022-07-28 15:31:34 +02:00
parent 0d017c30e2
commit 5ef31a96ea
No known key found for this signature in database
GPG Key ID: 8E5530D9D1C93097

View File

@ -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);
}