Skip to content

Commit

Permalink
debug log small changes
Browse files Browse the repository at this point in the history
  • Loading branch information
maloel committed May 14, 2020
1 parent e117e97 commit 1d63c2b
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 5 deletions.
1 change: 1 addition & 0 deletions src/context.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -362,6 +362,7 @@ namespace librealsense
list.push_back(dev);
}

LOG_INFO( "Found " << list.size() << " RealSense devices (mask " << mask << ")" );
return list;
}

Expand Down
6 changes: 3 additions & 3 deletions src/l500/l500-factory.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -110,12 +110,12 @@ namespace librealsense
platform::usb_device_info hwm;

if (!ivcam2::try_fetch_usb_device(group.usb_devices, depth, hwm))
LOG_WARNING("try_fetch_usb_device(...) failed.");
LOG_DEBUG("try_fetch_usb_device(...) failed.");

if(g.first[0].pid != L500_PID)
if (g.second.size() < 2)
{
LOG_WARNING("L500 partial enum: " << g.second.size() << " HID devices were recognized (2+ expected)");
LOG_DEBUG("L500 partial enum: " << g.second.size() << " HID devices were recognized (2+ expected)");
#if !defined(ANDROID) && !defined(__APPLE__) // Not supported by android & macos
continue;
#endif // Not supported by android & macos
Expand All @@ -127,7 +127,7 @@ namespace librealsense
}
else
{
LOG_WARNING("L500 group_devices is empty.");
LOG_DEBUG("L500 group_devices is empty.");
}
}

Expand Down
2 changes: 1 addition & 1 deletion src/mf/mf-uvc.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -309,11 +309,11 @@ namespace librealsense
if (hr == DEVICE_NOT_READY_ERROR)
return false;
CHECK_HR( hr );
if (bytes_received != len)
throw std::runtime_error(to_string() << "Get XU n:" << (int)ctrl << " received " << bytes_received << "/" << len << " bytes");
CHECK_HR(hr);
return true;
}
Expand Down
2 changes: 1 addition & 1 deletion src/win/win-helpers.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ namespace librealsense
if (to_throw)
throw windows_backend_exception(descr);
else
LOG_INFO(descr);
LOG_DEBUG(descr);

return false;
}
Expand Down

0 comments on commit 1d63c2b

Please sign in to comment.