Kaydet (Commit) 9e27b905 authored tarafından Jan Holesovsky's avatar Jan Holesovsky

sdremote: More logging.

Change-Id: I5fe792ddfe1fac5166865c51014d87309d48bab2
üst 994723a9
......@@ -117,6 +117,7 @@ bool BluetoothServer::isDiscoverable()
if ( aError != NULL ) {
g_error_free (aError);
SAL_INFO( "sdremote.bluetooth", "did not get DBusGConnection" );
return false;
}
......@@ -124,6 +125,7 @@ bool BluetoothServer::isDiscoverable()
if ( aAdapter == NULL )
{
dbus_g_connection_unref( aConnection );
SAL_INFO( "sdremote.bluetooth", "did not get default adaptor" );
return false;
}
......@@ -138,6 +140,7 @@ bool BluetoothServer::isDiscoverable()
{
if ( aError )
g_error_free( aError );
SAL_INFO( "sdremote.bluetooth", "did not get properties" );
return false;
}
......@@ -145,6 +148,8 @@ bool BluetoothServer::isDiscoverable()
aProperties, "Discoverable" ) );
g_hash_table_unref( aProperties );
SAL_INFO( "sdremote.bluetooth", "BluetoothServer::isDiscoverable() returns " << static_cast< bool >( aIsDiscoverable ) );
return aIsDiscoverable;
#else // defined(LINUX) && defined(ENABLE_DBUS)
return false;
......
......@@ -66,6 +66,7 @@ RemoteServer::RemoteServer() :
mSocket(),
mAvailableClients()
{
SAL_INFO( "sdremote", "Instantiated RemoteServer" );
}
RemoteServer::~RemoteServer()
......@@ -229,9 +230,13 @@ void RemoteServer::removeCommunicator( Communicator* mCommunicator )
std::vector<ClientInfo*> RemoteServer::getClients()
{
SAL_INFO( "sdremote", "RemoteServer::getClients() called" );
std::vector<ClientInfo*> aClients;
if ( !spServer )
{
SAL_INFO( "sdremote", "No remote server instance => no clients" );
return aClients;
}
MutexGuard aGuard( sDataMutex );
aClients.assign( spServer->mAvailableClients.begin(),
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment