From c0744a35891f89e50ab407a0b8557ce9d5c5e6cc Mon Sep 17 00:00:00 2001 From: Christian Cleberg Date: Sun, 12 Apr 2026 10:11:21 -0500 Subject: chore: clean up debug logging --- Hutch/Views/Lookup/ContributionCalendarViewModel.swift | 12 ------------ 1 file changed, 12 deletions(-) (limited to 'Hutch/Views/Lookup/ContributionCalendarViewModel.swift') diff --git a/Hutch/Views/Lookup/ContributionCalendarViewModel.swift b/Hutch/Views/Lookup/ContributionCalendarViewModel.swift index 1ff789d..acbae2d 100644 --- a/Hutch/Views/Lookup/ContributionCalendarViewModel.swift +++ b/Hutch/Views/Lookup/ContributionCalendarViewModel.swift @@ -116,8 +116,6 @@ final class ContributionCalendarViewModel { isLoading = true loadErrorMessage = nil defer { isLoading = false } - debugLog("load start actor=\(actor) endDate=\(selectedEndDate.formatted(date: .abbreviated, time: .omitted))") - let fetchedCalendar: ContributionCalendarResponse? let fetchedStats: ContributionStatsResponse? var errors: [any Error] = [] @@ -147,11 +145,6 @@ final class ContributionCalendarViewModel { loadErrorMessage = errors.first?.userFacingMessage } - debugLog( - "load complete actor=\(actor) endDate=\(selectedEndDate.formatted(date: .abbreviated, time: .omitted)) state=\(String(describing: displayState)) " + - "calendarDays=\(calendar?.days.count ?? 0) totalEvents=\(stats?.totalEvents ?? 0) " + - "indexingState=\(String(describing: effectiveIndexingState)) error=\(loadErrorMessage ?? "none")" - ) } func selectPreviousYear() async { @@ -196,9 +189,4 @@ final class ContributionCalendarViewModel { return normalizedStartDate...normalizedEndDate } - private func debugLog(_ message: String) { -#if DEBUG - print("[ContributionCalendarViewModel] \(message)") -#endif - } } -- cgit v1.2.3