Skip to content

Commit ee7506d

Browse files
committed
Add UTC suffix to smart sync logs for clarity
1 parent fe57312 commit ee7506d

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

Modules/Sources/Yosemite/Tools/POS/POSCatalogSyncCoordinator.swift

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -104,12 +104,13 @@ public actor POSCatalogSyncCoordinator: POSCatalogSyncCoordinatorProtocol {
104104

105105
public func performSmartSync(for siteID: Int64, fullSyncMaxAge: TimeInterval) async throws {
106106
let lastFullSync = await lastFullSyncDate(for: siteID) ?? Date(timeIntervalSince1970: 0)
107+
let lastFullSyncUTC = ISO8601DateFormatter().string(from: lastFullSync)
107108

108109
if Date().timeIntervalSince(lastFullSync) >= fullSyncMaxAge {
109-
DDLogInfo("🔄 POSCatalogSyncCoordinator: Performing full sync for site \(siteID) (last full sync: \(lastFullSync))")
110+
DDLogInfo("🔄 POSCatalogSyncCoordinator: Performing full sync for site \(siteID) (last full sync: \(lastFullSyncUTC) UTC)")
110111
try await performFullSync(for: siteID)
111112
} else {
112-
DDLogInfo("🔄 POSCatalogSyncCoordinator: Performing incremental sync for site \(siteID) (last full sync: \(lastFullSync))")
113+
DDLogInfo("🔄 POSCatalogSyncCoordinator: Performing incremental sync for site \(siteID) (last full sync: \(lastFullSyncUTC) UTC)")
113114
try await performIncrementalSync(for: siteID)
114115
}
115116
}

0 commit comments

Comments
 (0)