From cc64c681766a798bbcfa6e16e9723713ff0dc2c1 Mon Sep 17 00:00:00 2001
From: Benjamin Otte <otte@gnome.org>
Date: Mon, 24 Aug 2009 11:20:00 +0200
Subject: 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 file changed, 3 insertions(+), 3 deletions(-)

(limited to 'embed')

diff --git a/embed/ephy-favicon-cache.c b/embed/ephy-favicon-cache.c
index 6032827f3..c1e3cf7b4 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? */
-- 
cgit v1.2.3