Skip to content

Commit 2f711e4

Browse files
committed
fix: loop sending logs causing overflow
Fixes #8.
1 parent a41c03a commit 2f711e4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

logger.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -328,7 +328,7 @@ func (p *podEventLogger) sendLog(resourceName, token string, log agentsdk.Startu
328328
// If the logger was already closed, we await the close before
329329
// creating a new logger. This is to ensure all loggers get sent in order!
330330
_ = logger.closer.Close()
331-
p.sendLog(resourceName, token, log)
331+
go p.sendLog(resourceName, token, log)
332332
return
333333
}
334334
// We make this 5x the debounce because it's low-cost to persist a few

0 commit comments

Comments
 (0)