Use Logger for Progress.updateFromAria2

This commit is contained in:
Brandon Evans 2021-02-18 19:19:30 -07:00
parent 899eec7dae
commit 2f04d23eac
No known key found for this signature in database
GPG key ID: D58A4B8DB64F8E93

View file

@ -1,4 +1,4 @@
import os.log
import Foundation
extension Progress {
@ -39,7 +39,7 @@ extension Progress {
let speed = Int(string[matchRange].replacingOccurrences(of: "B", with: "")) {
self.throughput = speed
} else {
print("Could not find speed")
Logger.appState.debug("Could not parse throughput from aria2 download output")
}
// MARK: Estimated Time Remaining