(id, method string, recovered any)
| 1238 | } |
| 1239 | |
| 1240 | func (h *Host) fusePlugin(id, method string, recovered any) { |
| 1241 | if h == nil { |
| 1242 | return |
| 1243 | } |
| 1244 | h.mu.Lock() |
| 1245 | h.fused[id] = fmt.Sprintf("%s panic: %v", method, recovered) |
| 1246 | h.mu.Unlock() |
| 1247 | thinking.UnregisterPluginProviders(id) |
| 1248 | log.WithField("plugin_id", id).WithField("method", method).Errorf("pluginhost: plugin panic recovered: %v\n%s", recovered, debug.Stack()) |
| 1249 | } |
| 1250 | |
| 1251 | func (h *Host) isPluginFused(id string) bool { |
| 1252 | if h == nil { |
no test coverage detected