GUAC-911: Add debug messages to common pieces dealing with guac_client.
This commit is contained in:
parent
614ba62980
commit
661193fcb0
@ -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);
|
||||
|
@ -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.");
|
||||
|
||||
}
|
||||
|
||||
|
@ -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.");
|
||||
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user