|
|
@@ -115,7 +115,7 @@ final class BaseNightscoutManager: NightscoutManager, Injectable {
|
|
|
} catch {
|
|
|
debug(
|
|
|
.default,
|
|
|
- "\(DebuggingIdentifiers.failed) failed to fetch last enacted determination: \(error.localizedDescription)"
|
|
|
+ "\(DebuggingIdentifiers.failed) failed to fetch last enacted determination: \(error)"
|
|
|
)
|
|
|
}
|
|
|
}
|
|
|
@@ -398,7 +398,7 @@ final class BaseNightscoutManager: NightscoutManager, Injectable {
|
|
|
let carbs = try await nightscout.fetchCarbs(sinceDate: since)
|
|
|
return carbs
|
|
|
} catch {
|
|
|
- debug(.nightscout, "Error fetching carbs: \(error.localizedDescription)")
|
|
|
+ debug(.nightscout, "Error fetching carbs: \(error)")
|
|
|
return []
|
|
|
}
|
|
|
}
|
|
|
@@ -413,7 +413,7 @@ final class BaseNightscoutManager: NightscoutManager, Injectable {
|
|
|
let tempTargets = try await nightscout.fetchTempTargets(sinceDate: since)
|
|
|
return tempTargets
|
|
|
} catch {
|
|
|
- debug(.nightscout, "Error fetching temp targets: \(error.localizedDescription)")
|
|
|
+ debug(.nightscout, "Error fetching temp targets: \(error)")
|
|
|
return []
|
|
|
}
|
|
|
}
|
|
|
@@ -427,7 +427,7 @@ final class BaseNightscoutManager: NightscoutManager, Injectable {
|
|
|
} catch {
|
|
|
debug(
|
|
|
.nightscout,
|
|
|
- "\(DebuggingIdentifiers.failed) Failed to delete Carbs from Nightscout with error: \(error.localizedDescription)"
|
|
|
+ "\(DebuggingIdentifiers.failed) Failed to delete Carbs from Nightscout with error: \(error)"
|
|
|
)
|
|
|
}
|
|
|
}
|
|
|
@@ -441,7 +441,7 @@ final class BaseNightscoutManager: NightscoutManager, Injectable {
|
|
|
} catch {
|
|
|
debug(
|
|
|
.nightscout,
|
|
|
- "\(DebuggingIdentifiers.failed) Failed to delete Insulin from Nightscout with error: \(error.localizedDescription)"
|
|
|
+ "\(DebuggingIdentifiers.failed) Failed to delete Insulin from Nightscout with error: \(error)"
|
|
|
)
|
|
|
}
|
|
|
}
|
|
|
@@ -454,7 +454,7 @@ final class BaseNightscoutManager: NightscoutManager, Injectable {
|
|
|
} catch {
|
|
|
debug(
|
|
|
.nightscout,
|
|
|
- "\(DebuggingIdentifiers.failed) Failed to delete Manual Glucose from Nightscout with error: \(error.localizedDescription)"
|
|
|
+ "\(DebuggingIdentifiers.failed) Failed to delete Manual Glucose from Nightscout with error: \(error)"
|
|
|
)
|
|
|
}
|
|
|
}
|
|
|
@@ -662,7 +662,7 @@ final class BaseNightscoutManager: NightscoutManager, Injectable {
|
|
|
self.lastSuggestedDetermination = lastSuggestedDetermination
|
|
|
}
|
|
|
} catch {
|
|
|
- debug(.nightscout, error.localizedDescription)
|
|
|
+ debug(.nightscout, error)
|
|
|
}
|
|
|
|
|
|
Task.detached {
|
|
|
@@ -851,7 +851,7 @@ final class BaseNightscoutManager: NightscoutManager, Injectable {
|
|
|
|
|
|
debug(.nightscout, "Profile uploaded")
|
|
|
} catch {
|
|
|
- debug(.nightscout, "NightscoutManager uploadProfile: \(error.localizedDescription)")
|
|
|
+ debug(.nightscout, "NightscoutManager uploadProfile: \(error)")
|
|
|
throw error
|
|
|
}
|
|
|
} else {
|
|
|
@@ -868,7 +868,7 @@ final class BaseNightscoutManager: NightscoutManager, Injectable {
|
|
|
do {
|
|
|
return try await nightscout.importSettings()
|
|
|
} catch {
|
|
|
- debug(.nightscout, error.localizedDescription)
|
|
|
+ debug(.nightscout, error)
|
|
|
return nil
|
|
|
}
|
|
|
}
|
|
|
@@ -880,7 +880,7 @@ final class BaseNightscoutManager: NightscoutManager, Injectable {
|
|
|
} catch {
|
|
|
debug(
|
|
|
.nightscout,
|
|
|
- "\(DebuggingIdentifiers.failed) failed to upload glucose with error: \(error.localizedDescription)"
|
|
|
+ "\(DebuggingIdentifiers.failed) failed to upload glucose with error: \(error)"
|
|
|
)
|
|
|
}
|
|
|
}
|
|
|
@@ -891,7 +891,7 @@ final class BaseNightscoutManager: NightscoutManager, Injectable {
|
|
|
} catch {
|
|
|
debug(
|
|
|
.nightscout,
|
|
|
- "\(DebuggingIdentifiers.failed) failed to upload manual glucose with error: \(error.localizedDescription)"
|
|
|
+ "\(DebuggingIdentifiers.failed) failed to upload manual glucose with error: \(error)"
|
|
|
)
|
|
|
}
|
|
|
}
|
|
|
@@ -902,7 +902,7 @@ final class BaseNightscoutManager: NightscoutManager, Injectable {
|
|
|
} catch {
|
|
|
debug(
|
|
|
.nightscout,
|
|
|
- "\(DebuggingIdentifiers.failed) failed to upload pump history with error: \(error.localizedDescription)"
|
|
|
+ "\(DebuggingIdentifiers.failed) failed to upload pump history with error: \(error)"
|
|
|
)
|
|
|
}
|
|
|
}
|
|
|
@@ -914,7 +914,7 @@ final class BaseNightscoutManager: NightscoutManager, Injectable {
|
|
|
} catch {
|
|
|
debug(
|
|
|
.nightscout,
|
|
|
- "\(DebuggingIdentifiers.failed) failed to upload carbs with error: \(error.localizedDescription)"
|
|
|
+ "\(DebuggingIdentifiers.failed) failed to upload carbs with error: \(error)"
|
|
|
)
|
|
|
}
|
|
|
}
|
|
|
@@ -926,7 +926,7 @@ final class BaseNightscoutManager: NightscoutManager, Injectable {
|
|
|
} catch {
|
|
|
debug(
|
|
|
.nightscout,
|
|
|
- "\(DebuggingIdentifiers.failed) failed to upload overrides with error: \(error.localizedDescription)"
|
|
|
+ "\(DebuggingIdentifiers.failed) failed to upload overrides with error: \(error)"
|
|
|
)
|
|
|
}
|
|
|
}
|
|
|
@@ -938,7 +938,7 @@ final class BaseNightscoutManager: NightscoutManager, Injectable {
|
|
|
} catch {
|
|
|
debug(
|
|
|
.nightscout,
|
|
|
- "\(DebuggingIdentifiers.failed) failed to upload temp targets with error: \(error.localizedDescription)"
|
|
|
+ "\(DebuggingIdentifiers.failed) failed to upload temp targets with error: \(error)"
|
|
|
)
|
|
|
}
|
|
|
}
|
|
|
@@ -959,7 +959,7 @@ final class BaseNightscoutManager: NightscoutManager, Injectable {
|
|
|
|
|
|
debug(.nightscout, "Glucose uploaded")
|
|
|
} catch {
|
|
|
- debug(.nightscout, "Upload of glucose failed: \(error.localizedDescription)")
|
|
|
+ debug(.nightscout, "Upload of glucose failed: \(error)")
|
|
|
}
|
|
|
}
|
|
|
|
|
|
@@ -997,7 +997,7 @@ final class BaseNightscoutManager: NightscoutManager, Injectable {
|
|
|
|
|
|
debug(.nightscout, "Treatments uploaded")
|
|
|
} catch {
|
|
|
- debug(.nightscout, error.localizedDescription)
|
|
|
+ debug(.nightscout, error)
|
|
|
}
|
|
|
}
|
|
|
|
|
|
@@ -1015,7 +1015,7 @@ final class BaseNightscoutManager: NightscoutManager, Injectable {
|
|
|
|
|
|
debug(.nightscout, "Treatments uploaded")
|
|
|
} catch {
|
|
|
- debug(.nightscout, error.localizedDescription)
|
|
|
+ debug(.nightscout, error)
|
|
|
}
|
|
|
}
|
|
|
|
|
|
@@ -1056,7 +1056,7 @@ final class BaseNightscoutManager: NightscoutManager, Injectable {
|
|
|
|
|
|
debug(.nightscout, "Treatments uploaded")
|
|
|
} catch {
|
|
|
- debug(.nightscout, error.localizedDescription)
|
|
|
+ debug(.nightscout, error)
|
|
|
}
|
|
|
}
|
|
|
|
|
|
@@ -1097,7 +1097,7 @@ final class BaseNightscoutManager: NightscoutManager, Injectable {
|
|
|
|
|
|
debug(.nightscout, "Treatments uploaded")
|
|
|
} catch {
|
|
|
- debug(.nightscout, error.localizedDescription)
|
|
|
+ debug(.nightscout, error)
|
|
|
}
|
|
|
}
|
|
|
|
|
|
@@ -1156,7 +1156,7 @@ final class BaseNightscoutManager: NightscoutManager, Injectable {
|
|
|
|
|
|
debug(.nightscout, "Overrides uploaded")
|
|
|
} catch {
|
|
|
- debug(.nightscout, error.localizedDescription)
|
|
|
+ debug(.nightscout, error)
|
|
|
}
|
|
|
}
|
|
|
|
|
|
@@ -1214,7 +1214,7 @@ final class BaseNightscoutManager: NightscoutManager, Injectable {
|
|
|
|
|
|
debug(.nightscout, "Overrides uploaded")
|
|
|
} catch {
|
|
|
- debug(.nightscout, error.localizedDescription)
|
|
|
+ debug(.nightscout, error)
|
|
|
}
|
|
|
}
|
|
|
|
|
|
@@ -1255,7 +1255,7 @@ final class BaseNightscoutManager: NightscoutManager, Injectable {
|
|
|
|
|
|
debug(.nightscout, "Temp Targets uploaded")
|
|
|
} catch {
|
|
|
- debug(.nightscout, error.localizedDescription)
|
|
|
+ debug(.nightscout, error)
|
|
|
}
|
|
|
}
|
|
|
|
|
|
@@ -1296,7 +1296,7 @@ final class BaseNightscoutManager: NightscoutManager, Injectable {
|
|
|
|
|
|
debug(.nightscout, "Temp Target Runs uploaded")
|
|
|
} catch {
|
|
|
- debug(.nightscout, error.localizedDescription)
|
|
|
+ debug(.nightscout, error)
|
|
|
}
|
|
|
}
|
|
|
|