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/UserProfileViewModel.swift | |
| parent | 9050405b4f33b2b9b70458fcf3e43b80c940eef7 (diff) | |
| download | hutch-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/UserProfileViewModel.swift')
| -rw-r--r-- | Hutch/Views/Lookup/UserProfileViewModel.swift | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/Hutch/Views/Lookup/UserProfileViewModel.swift b/Hutch/Views/Lookup/UserProfileViewModel.swift index 143cb6f..56c2852 100644 --- a/Hutch/Views/Lookup/UserProfileViewModel.swift +++ b/Hutch/Views/Lookup/UserProfileViewModel.swift @@ -85,8 +85,6 @@ final class UserProfileViewModel { defer { isLoadingContributions = false } let resolvedEndDate = Calendar.contributionCalendar.startOfDay(for: endDate ?? Date()) - debugLog("profile contributions start actor=\(actor) endDate=\(resolvedEndDate.formatted(date: .abbreviated, time: .omitted))") - do { async let contributionCalendar = statsService.fetchContributionCalendar(actor: actor, endingOn: resolvedEndDate) async let contributionStats = statsService.fetchContributionStats(actor: actor, endingOn: resolvedEndDate) @@ -96,17 +94,8 @@ final class UserProfileViewModel { if contributionDisplayState != .unavailable { contributionsError = nil } - debugLog( - "profile contributions complete actor=\(actor) endDate=\(resolvedEndDate.formatted(date: .abbreviated, time: .omitted)) " + - "state=\(String(describing: contributionDisplayState)) days=\(self.contributionCalendar?.days.count ?? 0) " + - "totalEvents=\(self.contributionStats?.totalEvents ?? 0) error=\(contributionsError ?? "none")" - ) } catch { contributionsError = error.userFacingMessage - debugLog( - "profile contributions failed actor=\(actor) endDate=\(resolvedEndDate.formatted(date: .abbreviated, time: .omitted)) " + - "error=\(error.localizedDescription) userFacing=\(contributionsError ?? "none")" - ) } } @@ -232,9 +221,4 @@ final class UserProfileViewModel { } } - private func debugLog(_ message: String) { -#if DEBUG - print("[UserProfileViewModel] \(message)") -#endif - } } |
