diff --git a/src/backend-device-factory.cpp b/src/backend-device-factory.cpp index 6157cba595..44ea5d8d0a 100644 --- a/src/backend-device-factory.cpp +++ b/src/backend-device-factory.cpp @@ -145,14 +145,14 @@ backend_device_factory::backend_device_factory( std::shared_ptr< context > const for( auto & device_removed : subtract_sets( old_list, new_list ) ) { devices_removed.push_back( device_removed ); - LOG_DEBUG( "Device disconnected: " << device_removed->get_address() ); + LOG_INFO( "Device disconnected: " << device_removed->get_address() ); } std::vector< std::shared_ptr< device_info > > devices_added; for( auto & device_added : subtract_sets( new_list, old_list ) ) { devices_added.push_back( device_added ); - LOG_DEBUG( "Device connected: " << device_added->get_address() ); + LOG_INFO( "Device connected: " << device_added->get_address() ); } if( devices_removed.size() + devices_added.size() ) diff --git a/src/dds/rsdds-device-factory.cpp b/src/dds/rsdds-device-factory.cpp index b313330faa..0338443dbb 100644 --- a/src/dds/rsdds-device-factory.cpp +++ b/src/dds/rsdds-device-factory.cpp @@ -157,9 +157,15 @@ rsdds_device_factory::rsdds_device_factory( std::shared_ptr< context > const & c std::vector< std::shared_ptr< device_info > > infos_removed; auto dev_info = std::make_shared< dds_device_info >( ctx, dev ); if( added ) + { infos_added.push_back( dev_info ); + LOG_INFO( "Device connected: " << dev_info->get_address() ); + } else + { infos_removed.push_back( dev_info ); + LOG_INFO( "Device disconnected: " << dev_info->get_address() ); + } cb( infos_removed, infos_added ); } ); }