GUAC-911: Add debug messages to common pieces dealing with guac_client.

This commit is contained in:
Michael Jumper 2014-11-09 20:44:49 -08:00
parent 614ba62980
commit 661193fcb0
3 changed files with 17 additions and 0 deletions

View File

@ -57,6 +57,10 @@ void guac_common_clipboard_send(guac_common_clipboard* clipboard, guac_client* c
guac_stream* stream = guac_client_alloc_stream(client);
guac_protocol_send_clipboard(client->socket, stream, clipboard->mimetype);
guac_client_log(client, GUAC_LOG_DEBUG,
"Created stream %i for %s clipboard data.",
stream->index, clipboard->mimetype);
/* Split clipboard into chunks */
while (remaining > 0) {
@ -67,6 +71,9 @@ void guac_common_clipboard_send(guac_common_clipboard* clipboard, guac_client* c
/* Send block */
guac_protocol_send_blob(client->socket, stream, current, block_size);
guac_client_log(client, GUAC_LOG_DEBUG,
"Sent %i bytes of clipboard data on stream %i.",
block_size, stream->index);
/* Next block */
remaining -= block_size;
@ -74,6 +81,10 @@ void guac_common_clipboard_send(guac_common_clipboard* clipboard, guac_client* c
}
guac_client_log(client, GUAC_LOG_DEBUG,
"Clipboard stream %i complete.",
stream->index);
/* End stream */
guac_protocol_send_end(client->socket, stream);
guac_client_free_stream(client, stream);

View File

@ -78,5 +78,8 @@ void guac_common_set_dot_cursor(guac_client* client) {
/* Free buffer */
guac_client_free_buffer(client, cursor);
guac_client_log(client, GUAC_LOG_DEBUG,
"Client cursor image set to generic built-in dot.");
}

View File

@ -89,5 +89,8 @@ void guac_common_set_pointer_cursor(guac_client* client) {
/* Free buffer */
guac_client_free_buffer(client, cursor);
guac_client_log(client, GUAC_LOG_DEBUG,
"Client cursor image set to generic built-in pointer.");
}