Adopt OSLog for logging and replace the majority of calls to print()

This commit is contained in:
Blake McAnally 2024-05-31 16:42:34 -05:00
parent 79e23d561e
commit 4c7cd0d923
65 changed files with 418 additions and 401 deletions

View file

@ -137,7 +137,7 @@ struct SerialConfig: View {
setSerialValues()
// Need to request a SerialModuleConfig from the remote node before allowing changes
if bleManager.connectedPeripheral != nil && node?.serialConfig == nil {
print("empty serial module config")
logger.debug("empty serial module config")
let connectedNode = getNodeInfo(id: bleManager.connectedPeripheral.num, context: context)
if node != nil && connectedNode != nil {
_ = bleManager.requestSerialModuleConfig(fromUser: connectedNode!.user!, toUser: node!.user!, adminIndex: connectedNode?.myInfo?.adminIndex ?? 0)