Skip to content

Commit 673b1ee

Browse files
committed
Remove verbose debug logging, keep summary logs
1 parent ad5ef8c commit 673b1ee

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

main.go

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -649,14 +649,13 @@ func fetchAllSubscriptions() ([]SubscriptionDetail, error) {
649649
}
650650

651651
bodyBytes, _ := io.ReadAll(resp.Body)
652-
log.Printf("Subscriptions API response (page %d): %s", page, string(bodyBytes))
653652

654653
var result SubscriptionListResponse
655654
if err := json.Unmarshal(bodyBytes, &result); err != nil {
656655
return nil, fmt.Errorf("failed to decode subscriptions list: %w", err)
657656
}
658657

659-
log.Printf("Parsed %d subscriptions from page %d", len(result.Subscriptions), page)
658+
log.Printf("Fetched %d subscriptions from page %d", len(result.Subscriptions), page)
660659
allSubs = append(allSubs, result.Subscriptions...)
661660

662661
if result.NextPage == nil || *result.NextPage == 0 {
@@ -706,13 +705,13 @@ func fetchRecentQuotes() ([]QuoteAPIData, error) {
706705
}
707706

708707
bodyBytes, _ := io.ReadAll(resp.Body)
709-
log.Printf("Quotes API response: %s", string(bodyBytes))
710708

711709
var result QuoteListResponse
712710
if err := json.Unmarshal(bodyBytes, &result); err != nil {
713711
return nil, fmt.Errorf("failed to decode quotes list: %w", err)
714712
}
715713

714+
log.Printf("Fetched %d quotes", len(result.Quotes))
716715
return result.Quotes, nil
717716
}
718717

@@ -730,7 +729,6 @@ func fetchSubscriptionEntries(subscriptionID string) ([]SubscriptionEntry, error
730729
}
731730

732731
bodyBytes, _ := io.ReadAll(resp.Body)
733-
log.Printf("Entries API response for %s: %s", subscriptionID, string(bodyBytes))
734732

735733
var entries []SubscriptionEntry
736734
if err := json.Unmarshal(bodyBytes, &entries); err != nil {

0 commit comments

Comments
 (0)