mirror of
https://github.com/aljazceru/btcpayserver.git
synced 2026-02-11 09:14:26 +01:00
Provide error when plugin gets disabled due to crash
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user