Log cap count when adding image

This commit is contained in:
Christoph Hagen 2023-03-13 11:10:38 +01:00
parent b094762297
commit e7a54ec8ec

View File

@ -358,9 +358,10 @@ final class CapServer {
log("Failed to write image \(id) for cap \(cap): \(error)")
throw CapError.invalidFile
}
caps[cap]!.count = try count(of: cap)
let count = try count(of: cap)
caps[cap]!.count = count
addChangedImageToLog(cap: cap, image: id)
log("Added image \(id) for cap \(cap)")
log("Added image \(id) for cap \(cap) (\(count) total)")
}
private func writeChangedImagesToDisk() throws {