Skip to content

Commit

Permalink
move board-id to a debug log event
Browse files Browse the repository at this point in the history
  • Loading branch information
erikng committed Aug 1, 2024
1 parent dec3f0f commit 7242bbc
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion Nudge/Utilities/Utils.swift
Original file line number Diff line number Diff line change
Expand Up @@ -761,7 +761,12 @@ struct DeviceManager {
}

guard let property = IORegistryEntryCreateCFProperty(service, serviceTarget as CFString, kCFAllocatorDefault, 0)?.takeRetainedValue() else {
LogManager.error("Failed to fetch \(serviceTarget) property.", logger: utilsLog)
if serviceTarget == "board-id" {
// This serviceTarget fails on lots of machines, putting it as a debug
LogManager.debug("Failed to fetch \(serviceTarget) property.", logger: utilsLog)
} else {
LogManager.error("Failed to fetch \(serviceTarget) property.", logger: utilsLog)
}
return nil
}

Expand Down

0 comments on commit 7242bbc

Please sign in to comment.