Reduce logging level to debug dealing with index == -1, which is used in zmu to mean the last captured image. Fixes #3354

This commit is contained in:
Isaac Connor 2021-09-16 10:03:21 -04:00
parent 1700e2f919
commit fba7dba3d0
1 changed files with 1 additions and 1 deletions

View File

@ -1153,7 +1153,7 @@ void Monitor::AddPrivacyBitmask() {
int Monitor::GetImage(int32_t index, int scale) {
if (index < 0 || index > image_buffer_count) {
Warning("Invalid index %d passed. image_buffer_count = %d", index, image_buffer_count);
Debug(1, "Invalid index %d passed. image_buffer_count = %d", index, image_buffer_count);
index = shared_data->last_write_index;
}
if (!image_buffer.size() or static_cast<size_t>(index) >= image_buffer.size()) {