From cf31064bd9d12d734db51031dcbb45c75ebab269 Mon Sep 17 00:00:00 2001 From: "Sven A. Schmidt" Date: Sat, 14 Dec 2024 18:29:05 +0100 Subject: [PATCH] Improve error logging --- Sources/App/Commands/Ingest.swift | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/Sources/App/Commands/Ingest.swift b/Sources/App/Commands/Ingest.swift index 96d63fd43..c0e03703f 100644 --- a/Sources/App/Commands/Ingest.swift +++ b/Sources/App/Commands/Ingest.swift @@ -37,18 +37,18 @@ enum Ingestion { var description: String { switch self { - case let .fetchMetadataFailed(_, _, details): - "fetchMetadataFailed(\(details))" - case .findOrCreateRepositoryFailed: - "findOrCreateRepositoryFailed" + case let .fetchMetadataFailed(owner, name, details): + "fetchMetadataFailed(\(owner), \(name), \(details))" + case let .findOrCreateRepositoryFailed(url, details): + "findOrCreateRepositoryFailed(\(url), \(details))" case let .invalidURL(url): "invalidURL(\(url))" - case .noRepositoryMetadata: - "noRepositoryMetadata" - case let .repositorySaveFailed(_, _, details): - "repositorySaveFailed(\(String(reflecting: details)))" - case let .repositorySaveUniqueViolation(_, _, details): - "repositorySaveUniqueViolation(\(details))" + case let .noRepositoryMetadata(owner, name): + "noRepositoryMetadata(\(owner), \(name))" + case let .repositorySaveFailed(owner, name, details): + "repositorySaveFailed(\(owner), \(name), \(details))" + case let .repositorySaveUniqueViolation(owner, name, details): + "repositorySaveUniqueViolation(\(owner), \(name), \(details))" } } }