Debug the size returned as compared to the file size

This commit is contained in:
Isaac Connor 2022-01-15 17:19:30 -05:00
parent 1891002c65
commit 5f17cb6e9a
1 changed files with 2 additions and 1 deletions

View File

@ -1126,7 +1126,8 @@ bool EventStream::send_file(const std::string &filepath) {
} else {
Debug(1, "Failed to sendfile?");
}
Warning("Unable to send raw frame %ld: %s rc %d", curr_frame_id, strerror(errno), rc);
Warning("Unable to send raw frame %ld: %s rc %d != %d",
curr_frame_id, strerror(errno), rc, (int)filestat.st_size);
#endif
static unsigned char temp_img_buffer[ZM_MAX_IMAGE_SIZE];