Skip to content

Commit 6465630

Browse files
committed
Update GenerativeManager.swift
1 parent 46bc8fc commit 6465630

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

Sources/coreml-stable-diffusion-swift/manager/GenerativeManager.swift

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@
88
import Foundation
99
import StableDiffusion
1010
import CoreML
11+
import OSLog
12+
13+
private let logger = Logger(subsystem: "CoreML Stable diffusion", category: "GenerativeManager")
1114

1215
/// The manager for generating images
1316
@available(iOS 16.2, macOS 13.1, *)
@@ -38,7 +41,7 @@ public actor GenerativeManager: IGenerativeManager{
3841
{
3942
try pipeline.generateImages(configuration: config) { progress in
4043
#if DEBUG
41-
print(progress.step)
44+
logger.info("Progress step: \(progress.step)")
4245
#endif
4346
return !Task.isCancelled
4447
}

0 commit comments

Comments
 (0)