summaryrefslogtreecommitdiff
path: root/Hutch/Views/Lookup/ContributionCalendarViewModel.swift
diff options
context:
space:
mode:
authorChristian Cleberg <[email protected]>2026-04-12 10:11:21 -0500
committerChristian Cleberg <[email protected]>2026-04-12 10:11:21 -0500
commitc0744a35891f89e50ab407a0b8557ce9d5c5e6cc (patch)
treee4b40e8425ded8213be34ba31286fb723dcb8ccb /Hutch/Views/Lookup/ContributionCalendarViewModel.swift
parent9050405b4f33b2b9b70458fcf3e43b80c940eef7 (diff)
downloadhutch-2.15.1.tar.gz
hutch-2.15.1.tar.bz2
hutch-2.15.1.zip
chore: clean up debug loggingv2.15.1
Diffstat (limited to 'Hutch/Views/Lookup/ContributionCalendarViewModel.swift')
-rw-r--r--Hutch/Views/Lookup/ContributionCalendarViewModel.swift12
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
- }
}