[epiphany] Make non-critical g_warning() into LOG()



commit cc64c681766a798bbcfa6e16e9723713ff0dc2c1
Author: Benjamin Otte <otte gnome org>
Date:   Mon Aug 24 11:20:00 2009 +0200

    Make non-critical g_warning() into LOG()
    
    Failing to delete a favicon file should not cause the program to abort.

 embed/ephy-favicon-cache.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/embed/ephy-favicon-cache.c b/embed/ephy-favicon-cache.c
index 6032827..c1e3cf7 100644
--- a/embed/ephy-favicon-cache.c
+++ b/embed/ephy-favicon-cache.c
@@ -218,7 +218,7 @@ remove_obsolete_icons (EphyFaviconCache *cache,
 						 filename, NULL);
 			if (g_unlink (path) < 0)
 			{
-				g_warning ("Unable to delete %s", path);
+				LOG ("Unable to delete %s", path);
 			}
 
 			g_free (path);
@@ -399,7 +399,7 @@ delete_file (GFile *dir,
 					 NULL);
 		if (g_unlink (path) < 0)
 		{
-			g_warning ("Unable to delete %s", path);
+			LOG ("Unable to delete %s", path);
 		}
 		
 		g_free (path);
@@ -481,7 +481,7 @@ favicon_download_cancelled_cb (EphyEmbedPersist *persist,
 		dest = ephy_embed_persist_get_dest (persist);
 	if (g_unlink (dest) < 0)
 	{
-		g_warning ("Unable to delete %s", dest);
+		LOG ("Unable to delete %s", dest);
 	}
 
 	/* FIXME: re-schedule to try again after n days? */



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]