VNC-151 Update debug logs to include screen ID and codec details

This commit is contained in:
El 2025-12-12 08:48:57 +00:00
parent 464510f91b
commit dbcde47683
No known key found for this signature in database
GPG Key ID: 205388FEB607950A
2 changed files with 2 additions and 1 deletions

View File

@ -264,7 +264,7 @@ namespace rfb {
os->writeU8(pkt->flags & AV_PKT_FLAG_KEY);
write_compact(os, pkt->size);
os->writeBytes(&pkt->data[0], pkt->size);
vlog.debug("Frame size: %d", pkt->size);
vlog.debug("Screen id %d, codec %d, frame size: %d", layout.id, msg_codec_id, pkt->size);
ffmpeg.av_packet_unref(pkt);
}

View File

@ -124,6 +124,7 @@ namespace rfb {
os->writeU8(pkt->flags & AV_PKT_FLAG_KEY);
write_compact(os, pkt->size);
os->writeBytes(&pkt->data[0], pkt->size);
vlog.debug("Screen id %d, codec %d, frame size: %d", layout.id, msg_codec_id, pkt->size);
ffmpeg.av_packet_unref(pkt);
}