/cpw/tomkiewicz/masterpassword: db03a0efc8b4: More debug message...

Tomasz Wasilczyk tomkiewicz at cpw.pidgin.im
Tue Apr 30 05:43:50 EDT 2013


Changeset: db03a0efc8b455b0bec698be2c62305603f599ee
Author:	 Tomasz Wasilczyk <tomkiewicz at cpw.pidgin.im>
Date:	 2013-04-30 11:43 +0200
Branch:	 soc.2008.masterpassword
URL: https://hg.pidgin.im/cpw/tomkiewicz/masterpassword/rev/db03a0efc8b4

Description:

More debug messages for wincred keyring

diffstat:

 libpurple/plugins/keyrings/wincred.c |  15 ++++++++++++++-
 1 files changed, 14 insertions(+), 1 deletions(-)

diffs (39 lines):

diff --git a/libpurple/plugins/keyrings/wincred.c b/libpurple/plugins/keyrings/wincred.c
--- a/libpurple/plugins/keyrings/wincred.c
+++ b/libpurple/plugins/keyrings/wincred.c
@@ -127,6 +127,10 @@ wincred_read(PurpleAccount *account, Pur
 		error = g_error_new(PURPLE_KEYRING_ERROR,
 			PURPLE_KEYRING_ERROR_BACKENDFAIL,
 			"Cannot convert password");
+	} else {
+		purple_debug_misc("keyring-wincred",
+			"Got password for account %s.\n",
+			purple_account_get_username(account));
 	}
 
 	if (cb != NULL)
@@ -162,7 +166,12 @@ wincred_save(PurpleAccount *account, con
 			DWORD error_code = GetLastError();
 
 			if (error_code == ERROR_NOT_FOUND) {
-				/* Pasword doesn't existed. */
+				if (purple_debug_is_verbose()) {
+					purple_debug_misc("keyring-wincred",
+					"Password for account %s was already "
+					"removed.\n",
+					purple_account_get_username(account));
+				}
 			} else if (error_code == ERROR_NO_SUCH_LOGON_SESSION) {
 				purple_debug_error("keyring-wincred",
 					"Cannot remove password, no valid "
@@ -229,6 +238,10 @@ wincred_save(PurpleAccount *account, con
 				PURPLE_KEYRING_ERROR_BACKENDFAIL,
 				"Cannot store password, error %lx", error_code);
 		}
+	} else {
+		purple_debug_misc("keyring-wincred",
+			"Password updated for account %s.\n",
+			purple_account_get_username(account));
 	}
 
 	g_free(target_name);



More information about the Commits mailing list