Skip to content

Commit

Permalink
streamer: add log statements to extra paths
Browse files Browse the repository at this point in the history
  • Loading branch information
Wessie committed Jun 19, 2024
1 parent 7aaac1b commit ef24d66
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions streamer/streamer.go
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@ func NewStreamer(ctx context.Context, cfg config.Config,

// timer we use for starting the streamer if nobody is on
startTimer := util.NewCallbackTimer(func() {
zerolog.Ctx(ctx).Info().Msg("calling start after timeout")
s.Start(ctx)
})
// user value to tell us who is streaming according to the proxy
Expand Down Expand Up @@ -276,6 +277,7 @@ func (s *Streamer) start(ctx context.Context,
defer s.mu.Unlock()

if s.running { // already running
zerolog.Ctx(ctx).Info().Msg("start called while we're already running")
return
}

Expand Down

0 comments on commit ef24d66

Please sign in to comment.