Skip to content

Commit 928b847

Browse files
committed
procress log event through logstream service
Signed-off-by: Mangaal <[email protected]> (cherry picked from commit 161f2a4)
1 parent 9814947 commit 928b847

File tree

5 files changed

+1019
-132
lines changed

5 files changed

+1019
-132
lines changed

agent/agent.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,9 @@ type Agent struct {
104104

105105
cacheRefreshInterval time.Duration
106106
clusterCache *appstatecache.Cache
107+
108+
inflightMu sync.Mutex
109+
inflightLogs map[string]context.CancelFunc
107110
}
108111

109112
const defaultQueueName = "default"

agent/inbound.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,8 @@ func (a *Agent) processIncomingEvent(ev *event.Event) error {
7272
log().WithError(err).Errorf("Unable to process incoming redis event")
7373
}
7474
}()
75+
case event.TargetContainerLog:
76+
err = a.processIncomingContainerLogRequest(ev)
7577
default:
7678
err = fmt.Errorf("unknown event target - processIncomingEvent: %s", ev.Target())
7779
}

0 commit comments

Comments
 (0)