pidgin: d37240fe: Log the reason for disconnection to the ...

nosnilmot at pidgin.im nosnilmot at pidgin.im
Mon Aug 3 21:25:47 EDT 2009


-----------------------------------------------------------------
Revision: d37240fe89a03e9842a5cf770be6b4c612f4c1ef
Ancestor: 4b4bc04579a86d9b73a47d39654a65c1b15e1136
Author: nosnilmot at pidgin.im
Date: 2009-08-04T01:23:45
Branch: im.pidgin.pidgin
URL: http://d.pidgin.im/viewmtn/revision/info/d37240fe89a03e9842a5cf770be6b4c612f4c1ef

Modified files:
        libpurple/connection.c

ChangeLog: 

Log the reason for disconnection to the debug log, so that we might
actually see it in debug logs. hopefully. I meant to do this many moons ago.

-------------- next part --------------
============================================================
--- libpurple/connection.c	cd970c06856c25a8bc6fcf84ffc4508ea43eb7a6
+++ libpurple/connection.c	2c3a9606fb0f4a835820cff037e5ca13eac1a3b5
@@ -578,6 +578,9 @@ purple_connection_error_reason (PurpleCo
 
 	gc->wants_to_die = purple_connection_error_is_fatal (reason);
 
+	purple_debug_info("connection", "Connection error on %p (reason: %u description: %s)\n",
+	                  gc, reason, description);
+
 	ops = purple_connections_get_ui_ops();
 
 	if (ops != NULL)


More information about the Commits mailing list