Skip to content

Commit

Permalink
Remove redundant logging of peripheral identifier (#502)
Browse files Browse the repository at this point in the history
  • Loading branch information
twyatt authored Jun 15, 2023
1 parent 40973d5 commit b07b570
Showing 1 changed file with 14 additions and 14 deletions.
28 changes: 14 additions & 14 deletions core/src/appleMain/kotlin/PeripheralDelegate.kt
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ internal class PeripheralDelegate(
didDiscoverServices: NSError?,
) {
logger.debug {
message = "${peripheral.identifier} didDiscoverServices"
message = "didDiscoverServices"
detail(didDiscoverServices)
}
_response.sendBlocking(DidDiscoverServices(peripheral.identifier, didDiscoverServices))
Expand All @@ -101,7 +101,7 @@ internal class PeripheralDelegate(
error: NSError?,
) {
logger.debug(error) {
message = "${peripheral.identifier} didDiscoverIncludedServicesForService"
message = "didDiscoverIncludedServicesForService"
detail(didDiscoverIncludedServicesForService)
}
// todo
Expand All @@ -117,7 +117,7 @@ internal class PeripheralDelegate(
error: NSError?,
) {
logger.debug(error) {
message = "${peripheral.identifier} didDiscoverCharacteristicsForService"
message = "didDiscoverCharacteristicsForService"
detail(didDiscoverCharacteristicsForService)
}
_response.sendBlocking(
Expand All @@ -137,7 +137,7 @@ internal class PeripheralDelegate(
error: NSError?,
) {
logger.debug(error) {
message = "${peripheral.identifier} didDiscoverDescriptorsForCharacteristic"
message = "didDiscoverDescriptorsForCharacteristic"
detail(didDiscoverDescriptorsForCharacteristic)
}
// todo
Expand All @@ -153,7 +153,7 @@ internal class PeripheralDelegate(
error: NSError?,
) {
logger.debug(error) {
message = "${peripheral.identifier} didUpdateValueForCharacteristic"
message = "didUpdateValueForCharacteristic"
detail(didUpdateValueForCharacteristic)
detail(didUpdateValueForCharacteristic.value)
}
Expand All @@ -179,7 +179,7 @@ internal class PeripheralDelegate(
error: NSError?,
) {
logger.debug(error) {
message = "${peripheral.identifier} didUpdateValueForDescriptor"
message = "didUpdateValueForDescriptor"
detail(didUpdateValueForDescriptor)
}
_response.sendBlocking(
Expand All @@ -197,7 +197,7 @@ internal class PeripheralDelegate(
error: NSError?,
) {
logger.debug(error) {
message = "${peripheral.identifier} didWriteValueForCharacteristic"
message = "didWriteValueForCharacteristic"
detail(didWriteValueForCharacteristic)
}
_response.sendBlocking(
Expand All @@ -217,7 +217,7 @@ internal class PeripheralDelegate(
error: NSError?,
) {
logger.debug(error) {
message = "${peripheral.identifier} didWriteValueForDescriptor"
message = "didWriteValueForDescriptor"
detail(didWriteValueForDescriptor)
}
// todo
Expand All @@ -227,7 +227,7 @@ internal class PeripheralDelegate(
peripheral: CBPeripheral,
) {
logger.debug {
message = "${peripheral.identifier} peripheralIsReadyToSendWriteWithoutResponse"
message = "peripheralIsReadyToSendWriteWithoutResponse"
}
canSendWriteWithoutResponse.value = true
}
Expand All @@ -242,7 +242,7 @@ internal class PeripheralDelegate(
error: NSError?,
) {
logger.debug(error) {
message = "${peripheral.identifier} didUpdateNotificationStateForCharacteristic"
message = "didUpdateNotificationStateForCharacteristic"
detail(didUpdateNotificationStateForCharacteristic)
}
_response.sendBlocking(
Expand All @@ -262,7 +262,7 @@ internal class PeripheralDelegate(
error: NSError?,
) {
logger.debug(error) {
message = "${peripheral.identifier} didReadRSSI"
message = "didReadRSSI"
detail("rssi", didReadRSSI.stringValue)
}
_response.sendBlocking(DidReadRssi(peripheral.identifier, didReadRSSI, error))
Expand All @@ -272,7 +272,7 @@ internal class PeripheralDelegate(

override fun peripheralDidUpdateName(peripheral: CBPeripheral) {
logger.debug {
message = "${peripheral.identifier} peripheralDidUpdateName"
message = "peripheralDidUpdateName"
}
// todo
}
Expand All @@ -282,7 +282,7 @@ internal class PeripheralDelegate(
didModifyServices: List<*>,
) {
logger.debug {
message = "${peripheral.identifier} didModifyServices"
message = "didModifyServices"
}
// todo
}
Expand All @@ -295,7 +295,7 @@ internal class PeripheralDelegate(
error: NSError?,
) {
logger.debug(error) {
message = "${peripheral.identifier} didOpenL2CAPChannel"
message = "didOpenL2CAPChannel"
}
// todo
}
Expand Down

0 comments on commit b07b570

Please sign in to comment.