Skip to content

Commit eb0ba7f

Browse files
committed
Do not call StopLogProducer as it is deprecated
The production of logs is automatically stopped in c.Terminate()
1 parent 91bd4d6 commit eb0ba7f

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

lib/logstream/logstream.go

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -477,13 +477,6 @@ func (m *LogStream) DisconnectContainer(container LogProducingContainer) error {
477477

478478
m.log.Info().Str("Container", container.GetContainerID()).Msg("Disconnecting container")
479479

480-
if container.IsRunning() {
481-
m.log.Info().Str("Container", container.GetContainerID()).Msg("Container is running")
482-
}
483-
484-
m.log.Info().Str("Container", container.GetContainerID()).Msg("Stopping log producer")
485-
err = container.StopLogProducer()
486-
487480
consumerFound := false
488481
m.consumerMutex.RLock()
489482
for _, consumer := range m.consumers {

0 commit comments

Comments
 (0)