]> git.giacomolli.uk - onechat/blobdiff - subagent_run.go
Shorten the daemon log lines
[onechat] / subagent_run.go
index 7d3687c48f08691aed53f590dab7d10023e39e34..ca4ebd4247fd3038cd8a9902ad2ea77482d3872c 100644 (file)
@@ -240,7 +240,7 @@ func (r *SubagentRuns) Resume(ctx context.Context) error {
        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)
                }
        }
@@ -455,11 +455,11 @@ func (r *SubagentRuns) run(ctx context.Context, run *SubagentRun) {
 
        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)