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
@@ -991,6 +991,7 @@ func (al *AgentLoop) ReloadProviderAndConfig(
|
||||
go func() {
|
||||
defer func() {
|
||||
if r := recover(); r != nil {
|
||||
logger.RecoverPanicNoExit(r)
|
||||
panicErr = fmt.Errorf("panic during registry creation: %v", r)
|
||||
logger.ErrorCF("agent", "Panic during registry creation",
|
||||
map[string]any{"panic": r})
|
||||
|
||||
Reference in new issue
Block a user