Skip to content

Commit fe663a7

Browse files
committed
Move useful prints to Lumberjack, and remove debugging traces
1 parent edbb7a0 commit fe663a7

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

Hardware/Hardware/CardReader/StripeCardReader/StripeCardReaderService.swift

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -408,12 +408,12 @@ private extension StripeCardReaderService {
408408
/// https://stripe.dev/stripe-terminal-ios/docs/Classes/SCPTerminal.html#/c:objc(cs)SCPTerminal(im)collectPaymentMethod:delegate:completion:
409409

410410
if underlyingError != .commandCancelled {
411-
print("==== collect payment method was not cancelled. this is an actual error ", underlyingError)
411+
DDLogError("💳 Error: collect payment method \(underlyingError)")
412412
promise(.failure(CardReaderServiceError.paymentMethodCollection(underlyingError: underlyingError)))
413413
}
414414

415415
if underlyingError == .commandCancelled {
416-
print("==== collect payment method cancelled. this is an error we ignore ", error)
416+
DDLogError("💳 Warning: collect payment error cancelled. We actively ignore this error \(error)")
417417
}
418418

419419
}
@@ -488,12 +488,10 @@ extension StripeCardReaderService: BluetoothReaderDelegate {
488488
}
489489

490490
public func reader(_ reader: Reader, didStartInstallingUpdate update: ReaderSoftwareUpdate, cancelable: StripeTerminal.Cancelable?) {
491-
print("==== started software update")
492491
softwareUpdateSubject.send(.started(cancelable: cancelable.map(StripeCancelable.init(cancelable:))))
493492
}
494493

495494
public func reader(_ reader: Reader, didReportReaderSoftwareUpdateProgress progress: Float) {
496-
print("==== did repost software update progress ", progress)
497495
softwareUpdateSubject.send(.installing(progress: progress))
498496
}
499497

0 commit comments

Comments
 (0)