mirror of
https://github.com/btcpayserver/btcpayserver.git
synced 2025-01-18 13:26:47 +01:00
Provide error when plugin gets disabled due to crash
This commit is contained in:
parent
0d017c30e2
commit
5ef31a96ea
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user