mirror of
https://github.com/btcpayserver/btcpayserver.git
synced 2025-02-21 22:11:48 +01:00
Provide error when plugin gets disabled due to crash
This commit is contained in:
parent
0d017c30e2
commit
5ef31a96ea
1 changed files with 1 additions and 0 deletions
|
@ -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…
Add table
Reference in a new issue