Skip to content

Commit 7d7b835

Browse files
tternesqdot
authored andcommitted
Add NSError to trace log
1 parent c227cc1 commit 7d7b835

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/corebluetooth/central_delegate.rs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -348,8 +348,9 @@ declare_class!(
348348
_error: Option<&NSError>,
349349
) {
350350
trace!(
351-
"delegate_centralmanager_diddisconnectperipheral_error {}",
352-
peripheral_debug(peripheral)
351+
"delegate_centralmanager_diddisconnectperipheral_error {} (error={:?})",
352+
peripheral_debug(peripheral),
353+
_error
353354
);
354355
let peripheral_uuid = nsuuid_to_uuid(unsafe { &peripheral.identifier() });
355356
self.send_event(CentralDelegateEvent::DisconnectedDevice { peripheral_uuid });

0 commit comments

Comments
 (0)