[banshee] [Migo] Log the offending URL in RssParser
- From: Gabriel Burt <gburt src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [banshee] [Migo] Log the offending URL in RssParser
- Date: Wed, 10 Mar 2010 00:44:26 +0000 (UTC)
commit 2e3956b5282601c2d41806a7f5ef2e9cf715dc0d
Author: Gabriel Burt <gabriel burt gmail com>
Date: Tue Mar 9 16:43:26 2010 -0800
[Migo] Log the offending URL in RssParser
src/Libraries/Migo/Migo.Syndication/RssParser.cs | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
---
diff --git a/src/Libraries/Migo/Migo.Syndication/RssParser.cs b/src/Libraries/Migo/Migo.Syndication/RssParser.cs
index 1763460..5d77f7a 100644
--- a/src/Libraries/Migo/Migo.Syndication/RssParser.cs
+++ b/src/Libraries/Migo/Migo.Syndication/RssParser.cs
@@ -41,9 +41,11 @@ namespace Migo.Syndication
{
private XmlDocument doc;
private XmlNamespaceManager mgr;
+ private string url;
public RssParser (string url, string xml)
{
+ this.url = url;
xml = xml.TrimStart ();
doc = new XmlDocument ();
try {
@@ -79,6 +81,7 @@ namespace Migo.Syndication
public RssParser (string url, XmlDocument doc)
{
+ this.url = url;
this.doc = doc;
CheckRss ();
}
@@ -196,7 +199,7 @@ namespace Migo.Syndication
enclosure.Keywords = GetXmlNodeText (node, "itunes:keywords");
return enclosure;
} catch (Exception e) {
- Hyena.Log.Exception ("Caught error parsing RSS enclosure", e);
+ Hyena.Log.Exception (String.Format ("Caught error parsing RSS enclosure in {0}", url), e);
}
return null;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]