Skip to content

Commit

Permalink
Remove temporary added debug logs (#326)
Browse files Browse the repository at this point in the history
  • Loading branch information
at-wat authored Nov 10, 2022
1 parent 47524f4 commit 0c7340d
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions provider.go
Original file line number Diff line number Diff line change
Expand Up @@ -381,9 +381,7 @@ func (p *Provider) putSegments(ctx context.Context, ch chan *connection, chResp
wg.Add(1)
go func() {
defer wg.Done()
opts.logger.Debugf("New conn: %p", conn)
err := p.putMedia(ctx, conn, chResp, opts)
opts.logger.Debugf("Finished conn: %p", conn)
if err != nil {
opts.onError(err)
return
Expand Down Expand Up @@ -461,7 +459,6 @@ func (p *Provider) putMedia(ctx context.Context, conn *connection, chResp chan *
chMarshalDone := make(chan struct{})
go func() {
defer func() {
opts.logger.Debug("Finished EBML marshalling")
close(chMarshalDone)
wOutRaw.CloseWithError(io.EOF)
}()
Expand All @@ -478,7 +475,6 @@ func (p *Provider) putMedia(ctx context.Context, conn *connection, chResp chan *

var wgResp sync.WaitGroup
defer func() {
opts.logger.Debug("Flushing responses")
close(chRespRaw)
wgResp.Wait()
}()
Expand Down Expand Up @@ -573,7 +569,6 @@ func (p *Provider) putMediaRaw(ctx context.Context, r io.Reader, chResp chan *Fr

defer func() {
_ = res.Body.Close()
opts.logger.Debug("API connection closed")
}()

if res.StatusCode != 200 {
Expand Down

0 comments on commit 0c7340d

Please sign in to comment.