Skip to content

Commit

Permalink
More logging
Browse files Browse the repository at this point in the history
  • Loading branch information
hsanjuan committed Oct 17, 2023
1 parent ec23b97 commit 752624c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion subscription.go
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ func (s *HTTPSubscriber) Subscribe() {

// Stop stops the subscription process.
func (s *HTTPSubscriber) Stop() {
s.stopChannel <- struct{}{}
close(s.stopChannel)
}

func (s *HTTPSubscriber) downloadAndAppend() error {
Expand All @@ -97,6 +97,8 @@ func (s *HTTPSubscriber) downloadAndAppend() error {
rangeHeader := fmt.Sprintf("bytes=%d-", localFileSize)
req.Header.Set("Range", rangeHeader)

logger.Debug("%s: requesting bytes from %d: %s", s.localFile, localFileSize, req.URL)

resp, err := http.DefaultClient.Do(req)
if err != nil {
return err
Expand Down

0 comments on commit 752624c

Please sign in to comment.