From 6fc1699d861aa076dc3886c6d0932c9afaf44c01 Mon Sep 17 00:00:00 2001 From: Michael Jumper Date: Fri, 28 Nov 2014 18:46:33 -0800 Subject: [PATCH] GUAC-930: Log keysyms which are sent via Unicode. --- src/protocols/rdp/guac_handlers.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/protocols/rdp/guac_handlers.c b/src/protocols/rdp/guac_handlers.c index 621b0a00..216aa0f8 100644 --- a/src/protocols/rdp/guac_handlers.c +++ b/src/protocols/rdp/guac_handlers.c @@ -411,6 +411,9 @@ int __guac_rdp_send_keysym(guac_client* client, int keysym, int pressed) { * DOWN/RELEASE flags */ if (pressed) { + guac_client_log(client, GUAC_LOG_DEBUG, + "Sending keysym 0x%x as Unicode", keysym); + /* Translate keysym into codepoint */ int codepoint; if (keysym <= 0xFF) @@ -418,7 +421,7 @@ int __guac_rdp_send_keysym(guac_client* client, int keysym, int pressed) { else if (keysym >= 0x1000000) codepoint = keysym & 0xFFFFFF; else { - guac_client_log(client, GUAC_LOG_INFO, + guac_client_log(client, GUAC_LOG_DEBUG, "Unmapped keysym has no equivalent unicode " "value: 0x%x", keysym); return 0;