Log cap count when adding image
This commit is contained in:
parent
b094762297
commit
e7a54ec8ec
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user