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:
parent
9e4f203632
commit
0bf417bae0
|
@ -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()) {
|
||||
|
|
Loading…
Reference in New Issue