From a5473ab05209e140c809007a199669bad8db36ca Mon Sep 17 00:00:00 2001 From: "keybuk@chromium.org" Date: Wed, 21 May 2014 20:37:53 +0000 Subject: [PATCH] Bluetooth: add extra logging messages BUG=None TBR=armansito Review URL: https://codereview.chromium.org/294163004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@271965 0039d316-1c4b-4281-b951-d872f2087c98 --- device/bluetooth/bluetooth_socket_chromeos.cc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/device/bluetooth/bluetooth_socket_chromeos.cc b/device/bluetooth/bluetooth_socket_chromeos.cc index bf0efa0eb822..ddc0b1ff6fa5 100644 --- a/device/bluetooth/bluetooth_socket_chromeos.cc +++ b/device/bluetooth/bluetooth_socket_chromeos.cc @@ -476,6 +476,8 @@ void BluetoothSocketChromeOS::DoNewConnection( VLOG(1) << object_path_.value() << ": Validity check complete."; if (!fd->is_valid()) { + LOG(WARNING) << object_path_.value() << " :" << fd->value() + << ": Invalid file descriptor received from Bluetooth Daemon."; ui_task_runner()->PostTask(FROM_HERE, base::Bind(callback, REJECTED));; return; @@ -502,6 +504,7 @@ void BluetoothSocketChromeOS::DoNewConnection( return; } + VLOG(2) << object_path_.value() << ": Taking descriptor, confirming success."; fd->TakeValue(); ui_task_runner()->PostTask(FROM_HERE, base::Bind(callback, SUCCESS));;