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() ...@@ -117,6 +117,7 @@ bool BluetoothServer::isDiscoverable()
if ( aError != NULL ) { if ( aError != NULL ) {
g_error_free (aError); g_error_free (aError);
SAL_INFO( "sdremote.bluetooth", "did not get DBusGConnection" );
return false; return false;
} }
...@@ -124,6 +125,7 @@ bool BluetoothServer::isDiscoverable() ...@@ -124,6 +125,7 @@ bool BluetoothServer::isDiscoverable()
if ( aAdapter == NULL ) if ( aAdapter == NULL )
{ {
dbus_g_connection_unref( aConnection ); dbus_g_connection_unref( aConnection );
SAL_INFO( "sdremote.bluetooth", "did not get default adaptor" );
return false; return false;
} }
...@@ -138,6 +140,7 @@ bool BluetoothServer::isDiscoverable() ...@@ -138,6 +140,7 @@ bool BluetoothServer::isDiscoverable()
{ {
if ( aError ) if ( aError )
g_error_free( aError ); g_error_free( aError );
SAL_INFO( "sdremote.bluetooth", "did not get properties" );
return false; return false;
} }
...@@ -145,6 +148,8 @@ bool BluetoothServer::isDiscoverable() ...@@ -145,6 +148,8 @@ bool BluetoothServer::isDiscoverable()
aProperties, "Discoverable" ) ); aProperties, "Discoverable" ) );
g_hash_table_unref( aProperties ); g_hash_table_unref( aProperties );
SAL_INFO( "sdremote.bluetooth", "BluetoothServer::isDiscoverable() returns " << static_cast< bool >( aIsDiscoverable ) );
return aIsDiscoverable; return aIsDiscoverable;
#else // defined(LINUX) && defined(ENABLE_DBUS) #else // defined(LINUX) && defined(ENABLE_DBUS)
return false; return false;
......
...@@ -66,6 +66,7 @@ RemoteServer::RemoteServer() : ...@@ -66,6 +66,7 @@ RemoteServer::RemoteServer() :
mSocket(), mSocket(),
mAvailableClients() mAvailableClients()
{ {
SAL_INFO( "sdremote", "Instantiated RemoteServer" );
} }
RemoteServer::~RemoteServer() RemoteServer::~RemoteServer()
...@@ -229,9 +230,13 @@ void RemoteServer::removeCommunicator( Communicator* mCommunicator ) ...@@ -229,9 +230,13 @@ void RemoteServer::removeCommunicator( Communicator* mCommunicator )
std::vector<ClientInfo*> RemoteServer::getClients() std::vector<ClientInfo*> RemoteServer::getClients()
{ {
SAL_INFO( "sdremote", "RemoteServer::getClients() called" );
std::vector<ClientInfo*> aClients; std::vector<ClientInfo*> aClients;
if ( !spServer ) if ( !spServer )
{
SAL_INFO( "sdremote", "No remote server instance => no clients" );
return aClients; return aClients;
}
MutexGuard aGuard( sDataMutex ); MutexGuard aGuard( sDataMutex );
aClients.assign( spServer->mAvailableClients.begin(), 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