diff --git a/main.go b/main.go index dbb8a15..258e202 100644 --- a/main.go +++ b/main.go @@ -181,6 +181,7 @@ func syncOnce(ctx context.Context, cfg Config, rdb *redis.Client, ranger *Ranger } func processURL(ctx context.Context, url string, cb func(netip.Prefix)) error { + fmt.Println("Process URL:", url) req, _ := http.NewRequestWithContext(ctx, http.MethodGet, url, nil) resp, err := http.DefaultClient.Do(req) if err != nil { @@ -190,6 +191,7 @@ func processURL(ctx context.Context, url string, cb func(netip.Prefix)) error { if resp.StatusCode != http.StatusOK { return fmt.Errorf("%s -> %s", url, resp.Status) } + fmt.Println("Done.") return parseStream(resp.Body, cb) }