summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStu Tomlinson <nosnilmot@pidgin.im>2009-08-04 01:23:45 +0000
committerStu Tomlinson <nosnilmot@pidgin.im>2009-08-04 01:23:45 +0000
commit3d37b67afb84c6d0537292b33c54db88cb86153f (patch)
tree8e08ec2ab703489d38a646fff0f604e45ca4366c
parentaa9caa26d72698aa687089a88b5260ca076ece1b (diff)
downloadpidgin-3d37b67afb84c6d0537292b33c54db88cb86153f.tar.gz
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.
-rw-r--r--libpurple/connection.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/libpurple/connection.c b/libpurple/connection.c
index 13d62184e5..59ed00f32c 100644
--- a/libpurple/connection.c
+++ b/libpurple/connection.c
@@ -578,6 +578,9 @@ purple_connection_error_reason (PurpleConnection *gc,
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)