changeset 12996:fbdc9e7ef77a

[gaim-migrate @ 15349] Bleeter updated the buddy icon logging to be more consistent and verbose committer: Tailor Script <tailor@pidgin.im>
author Daniel Atallah <daniel.atallah@gmail.com>
date Sun, 22 Jan 2006 22:51:38 +0000
parents 595f690399e4
children b4d2a8edba4a
files src/buddyicon.c
diffstat 1 files changed, 5 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/src/buddyicon.c	Sun Jan 22 22:37:04 2006 +0000
+++ b/src/buddyicon.c	Sun Jan 22 22:51:38 2006 +0000
@@ -213,6 +213,7 @@
 			g_unlink(filename);
 		g_free(filename);
 	}
+	gaim_debug_info("buddyicon", "Uncached file %s\n", old_icon);
 }
 
 void
@@ -241,11 +242,11 @@
 
 	if (!g_file_test(dirname, G_FILE_TEST_IS_DIR))
 	{
-		gaim_debug_info("buddy icons", "Creating icon cache directory.\n");
+		gaim_debug_info("buddyicon", "Creating icon cache directory.\n");
 
 		if (g_mkdir(dirname, S_IRUSR | S_IWUSR | S_IXUSR) < 0)
 		{
-			gaim_debug_error("buddy icons",
+			gaim_debug_error("buddyicon",
 							 "Unable to create directory %s: %s\n",
 							 dirname, strerror(errno));
 		}
@@ -255,10 +256,11 @@
 	{
 		fwrite(data, 1, len, file);
 		fclose(file);
+		gaim_debug_info("buddyicon", "Wrote file %s\n", filename);
 	}
 	else
 	{
-		gaim_debug_error("buddy icons", "Unable to create file %s: %s\n",
+		gaim_debug_error("buddyicon", "Unable to create file %s: %s\n",
 						 filename, strerror(errno));
 	}