unify all panic event to panic log file (#2250)
This commit is contained in:
1 parent
31afad6e87
commit
e2a9bb97c7
6 files changed
+34
-11
No files matched your search
@@ -228,6 +228,7 @@ func (r *ToolRegistry) ExecuteWithContext(
|
||||
func() {
|
||||
defer func() {
|
||||
if re := recover(); re != nil {
|
||||
logger.RecoverPanicNoExit(re)
|
||||
errMsg := fmt.Sprintf("Tool '%s' crashed with panic: %v", name, re)
|
||||
logger.ErrorCF("tool", "Tool execution panic recovered",
|
||||
map[string]any{
|
||||
|
||||
Reference in new issue
Block a user