[Spice-devel] [spice-gtk] session: Tone down warning on TLS-only connections

Christophe Fergeau cfergeau at redhat.com
Thu Mar 12 03:50:03 PDT 2015


315c1a5 "session: Add more debugging logs" causes a g_warning() to be
shown when attempting a TLS connection without specifying a non-TLS
port.
This commit makes the message more explicit, and switches it from being
a warning to being a debug message.
---
 gtk/spice-session.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/gtk/spice-session.c b/gtk/spice-session.c
index 516184d..1a68d7d 100644
--- a/gtk/spice-session.c
+++ b/gtk/spice-session.c
@@ -2109,7 +2109,8 @@ GSocketConnection* spice_session_channel_open_host(SpiceSession *session, SpiceC
     } else {
         port = *use_tls ? s->tls_port : s->port;
         if (port == NULL) {
-            g_warning("Missing port value (use_tls: %d)", *use_tls);
+            g_debug("Missing port value, not attempting %s connection.",
+                    *use_tls?"TLS":"unencrypted");
             return NULL;
         }
 
-- 
2.1.0



More information about the Spice-devel mailing list