diff options
| author | Christian Cleberg <[email protected]> | 2026-04-12 10:11:21 -0500 |
|---|---|---|
| committer | Christian Cleberg <[email protected]> | 2026-04-12 10:11:21 -0500 |
| commit | c0744a35891f89e50ab407a0b8557ce9d5c5e6cc (patch) | |
| tree | e4b40e8425ded8213be34ba31286fb723dcb8ccb /Hutch/Views/Lookup/ContributionCalendarViewModel.swift | |
| parent | 9050405b4f33b2b9b70458fcf3e43b80c940eef7 (diff) | |
| download | hutch-c0744a35891f89e50ab407a0b8557ce9d5c5e6cc.tar.gz hutch-c0744a35891f89e50ab407a0b8557ce9d5c5e6cc.tar.bz2 hutch-c0744a35891f89e50ab407a0b8557ce9d5c5e6cc.zip | |
chore: clean up debug loggingv2.15.1
Diffstat (limited to 'Hutch/Views/Lookup/ContributionCalendarViewModel.swift')
| -rw-r--r-- | Hutch/Views/Lookup/ContributionCalendarViewModel.swift | 12 |
1 files changed, 0 insertions, 12 deletions
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 - } } |
