for _, name := range names {
_, err = r.Tell(ctx, name, text)
if err != nil {
- r.logger.Printf("subagent %s cannot go on after the restart, and its report tells the agent: %v", name, err)
+ r.logger.Printf("subagent %s lost at restart: %v", name, err)
r.report(name, subagentReport(name, []string{"failed: " + err.Error()}), subagentFailed)
}
}
switch status {
case subagentStopped:
- r.logger.Printf("subagent %s is stopped by the user", run.subagent.name)
+ r.logger.Printf("subagent %s stopped", run.subagent.name)
case subagentFailed:
- r.logger.Printf("subagent %s failed, and its report tells the agent: %v", run.subagent.name, failure)
+ r.logger.Printf("subagent %s failed: %v", run.subagent.name, failure)
default:
- r.logger.Printf("subagent %s is done, and its report goes to the agent", run.subagent.name)
+ r.logger.Printf("subagent %s done", run.subagent.name)
}
r.report(run.subagent.name, subagentReport(run.subagent.name, replies), status)