channels: ignore internal/system outbound pseudo-channels to avoid noisy unknown-channel warnings

This commit is contained in:
DBT
2026-02-28 17:27:31 +00:00
parent d8f3e7fdba
commit 0adcad1430

View File

@@ -9,6 +9,7 @@ package channels
import (
"context"
"fmt"
"strings"
"sync"
"sync/atomic"
@@ -291,6 +292,11 @@ func (m *Manager) dispatchOutbound(ctx context.Context) {
channel, exists := cur[msg.Channel]
if !exists {
ch := strings.ToLower(strings.TrimSpace(msg.Channel))
if ch == "system" || ch == "internal" || ch == "" {
// Internal/system pseudo channels are not externally dispatchable.
continue
}
logger.WarnCF("channels", "Unknown channel for outbound message", map[string]interface{}{
logger.FieldChannel: msg.Channel,
})