Moving logging from INFO to DEBUG for messages

Removing extrnaeous comments about mutex in loop.go

Made-with: Cursor
This commit is contained in:
Aditya Kalro
2026-02-23 15:50:55 -08:00
parent 071505e797
commit 04806bffe3
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -218,6 +218,7 @@ func (al *AgentLoop) Run(ctx context.Context) error {
} else {
logger.DebugCF("agent", "Skipped outbound (message tool already sent)", map[string]any{"channel": msg.Channel})
}
}
}()
}
}
@@ -315,7 +316,6 @@ func (al *AgentLoop) ProcessDirectWithChannel(
// ProcessHeartbeat processes a heartbeat request without session history.
// Each heartbeat is independent and doesn't accumulate context.
// It uses the same mutex as processMessage so heartbeat and user messages never run concurrently.
func (al *AgentLoop) ProcessHeartbeat(ctx context.Context, content, channel, chatID string) (string, error) {
agent := al.registry.GetDefaultAgent()
if agent == nil {
+1 -1
View File
@@ -267,7 +267,7 @@ func (c *WhatsAppNativeChannel) handleIncoming(evt *events.Message) {
metadata["peer_id"] = senderID
}
logger.InfoCF("channels", "WhatsApp message received", map[string]any{"sender_id": senderID, "content_preview": utils.Truncate(content, 50)})
logger.DebugCF("channels", "WhatsApp message received", map[string]any{"sender_id": senderID, "content_preview": utils.Truncate(content, 50)})
c.HandleMessage(senderID, chatID, content, mediaPaths, metadata)
}