diff options
| author | Christian Cleberg <[email protected]> | 2026-03-24 16:50:30 -0500 |
|---|---|---|
| committer | Christian Cleberg <[email protected]> | 2026-03-24 16:50:30 -0500 |
| commit | 59ea46a8642f665e56293150addc93a76f2728ad (patch) | |
| tree | abdd0a0c248971915a7fd04d8a32a56c8bfb0602 /Hutch/Views/Home | |
| parent | 1a4338ac9fa4392a3b1d04d6fe1316f4c9804802 (diff) | |
| download | hutch-59ea46a8642f665e56293150addc93a76f2728ad.tar.gz hutch-59ea46a8642f665e56293150addc93a76f2728ad.tar.bz2 hutch-59ea46a8642f665e56293150addc93a76f2728ad.zip | |
fix: log errors in HomeViewModel's silent catch blocks
Diffstat (limited to 'Hutch/Views/Home')
| -rw-r--r-- | Hutch/Views/Home/HomeViewModel.swift | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/Hutch/Views/Home/HomeViewModel.swift b/Hutch/Views/Home/HomeViewModel.swift index 5897aca..50b1854 100644 --- a/Hutch/Views/Home/HomeViewModel.swift +++ b/Hutch/Views/Home/HomeViewModel.swift @@ -1,4 +1,7 @@ import Foundation +import os + +private let homeLogger = Logger(subsystem: "net.cleberg.Hutch", category: "Home") private struct HomeJobsResponse: Decodable, Sendable { let jobs: HomeJobsPage @@ -345,6 +348,7 @@ final class HomeViewModel { ) assignedTickets.removeAll { $0.id == ticket.id } } catch { + homeLogger.error("Unassign from me failed: \(error, privacy: .public)") } } @@ -377,6 +381,7 @@ final class HomeViewModel { ) } } catch { + homeLogger.error("Cancel build failed: \(error, privacy: .public)") } } @@ -612,6 +617,7 @@ final class HomeViewModel { ) assignedTickets.removeAll { $0.id == ticket.id } } catch { + homeLogger.error("Ticket status update failed: \(error, privacy: .public)") } } |
