             error: Error?
         ) {
             
-            if let error = error {
-                self.central.log("Error discovering characteristics for service \(serviceObject.uuid.uuidString) (\(error))")
-            } else {
-                self.central.log("Peripheral \(peripheralObject.gattIdentifier.uuidString) did discover \(serviceObject.characteristics?.count ?? 0) characteristics for service \(serviceObject.uuid.uuidString)")
-            }
+            log(peripheralObject.gattIdentifier.uuidString, serviceObject.uuid.uuidString, error?.localizedDescription)
             
             let peripheral = Peripheral(peripheralObject)
             guard let continuation = self.central.continuation.discoverCharacteristics[peripheral] else {

            error: Swift.Error?
        ) {
                        
            if let error = error {
                self.central.log("Did disconnect peripheral \(corePeripheral.gattIdentifier.uuidString) due to error \(error.localizedDescription)")
            } else {
                self.central.log("Did disconnect peripheral \(corePeripheral.gattIdentifier.uuidString)")
            }
            
            let peripheral = Peripheral(corePeripheral)
            self.central.continuation.didDisconnect.yield(peripheral)

            connectionEventDidOccur event: CBConnectionEvent,
            for corePeripheral: CBPeripheral
        ) {
            log(event.rawValue.description, corePeripheral.gattIdentifier.uuidString)
        }
        #endif
        
