changeset 28091:3896cbf6336a

Display the username in the debug log when disconnecting an account.
author Paul Aurich <paul@darkrain42.org>
date Tue, 25 Aug 2009 03:54:33 +0000
parents 1e529b03ec81
children 2da9e508a523 36b5b0872f10
files libpurple/account.c
diffstat 1 files changed, 4 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/libpurple/account.c	Tue Aug 25 01:23:37 2009 +0000
+++ b/libpurple/account.c	Tue Aug 25 03:54:33 2009 +0000
@@ -1206,11 +1206,14 @@
 purple_account_disconnect(PurpleAccount *account)
 {
 	PurpleConnection *gc;
+	const char *username;
 
 	g_return_if_fail(account != NULL);
 	g_return_if_fail(!purple_account_is_disconnected(account));
 
-	purple_debug_info("account", "Disconnecting account %p\n", account);
+	username = purple_account_get_username(account);
+	purple_debug_info("account", "Disconnecting account %s (%p)\n",
+	                  username ? username : "(null)", account);
 
 	account->disconnecting = TRUE;