Skip to content

Commit 2878b97

Browse files
committed
Add more logging
1 parent 14cbf3b commit 2878b97

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

Sources/App/Commands/Reconcile.swift

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ struct ReconcileCommand: AsyncCommand {
2525
func run(using context: CommandContext, signature: Signature) async throws {
2626
Current.setLogger(Logger(component: "reconcile"))
2727

28-
Current.logger().info("Reconciling ...")
28+
Current.logger().info("Reconciling...")
2929

3030
do {
3131
try await reconcile(client: context.application.client,
@@ -51,12 +51,15 @@ func reconcile(client: Client, database: Database) async throws {
5151
defer { AppMetrics.reconcileDurationSeconds?.time(since: start) }
5252

5353
// reconcile main package list
54+
Current.logger().info("Reconciling main list...")
5455
let fullPackageList = try await reconcileMainPackageList(client: client, database: database)
5556

5657
do { // reconcile custom package collections
58+
Current.logger().info("Reconciling custom collections...")
5759
@Dependency(\.packageListRepository) var packageListRepository
5860
let collections = try await packageListRepository.fetchCustomCollections(client: client)
5961
for collection in collections {
62+
Current.logger().info("Reconciling '\(collection.name)' collection...")
6063
try await reconcileCustomCollection(client: client, database: database, fullPackageList: fullPackageList, collection)
6164
}
6265
}

0 commit comments

Comments
 (0)