diff options
author | daniel oeh <daniel.oeh@gmail.com> | 2012-07-22 12:41:17 +0200 |
---|---|---|
committer | daniel oeh <daniel.oeh@gmail.com> | 2012-07-22 12:41:17 +0200 |
commit | f0edc0558b19bd8185e84876a233d1930c5867f5 (patch) | |
tree | 4284284b2dae1ae6575812e4ac14dc473d91138a /src/de/danoeh/antennapod/syndication/handler/TypeGetter.java | |
parent | 581e8af135570ba4fc8b3fdbad536d59a9ce20d3 (diff) | |
download | AntennaPod-f0edc0558b19bd8185e84876a233d1930c5867f5.zip |
Added DEBUG logging condition0.8_RC3
Diffstat (limited to 'src/de/danoeh/antennapod/syndication/handler/TypeGetter.java')
-rw-r--r-- | src/de/danoeh/antennapod/syndication/handler/TypeGetter.java | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/de/danoeh/antennapod/syndication/handler/TypeGetter.java b/src/de/danoeh/antennapod/syndication/handler/TypeGetter.java index 7e346ca5c..4a706311e 100644 --- a/src/de/danoeh/antennapod/syndication/handler/TypeGetter.java +++ b/src/de/danoeh/antennapod/syndication/handler/TypeGetter.java @@ -12,6 +12,7 @@ import org.xmlpull.v1.XmlPullParserFactory; import android.util.Log; +import de.danoeh.antennapod.BuildConfig; import de.danoeh.antennapod.feed.Feed; /** Gets the type of a specific feed by reading the root element. */ @@ -38,15 +39,15 @@ public class TypeGetter { if (eventType == XmlPullParser.START_TAG) { String tag = xpp.getName(); if (tag.equals(ATOM_ROOT)) { - Log.d(TAG, "Recognized type Atom"); + if (BuildConfig.DEBUG) Log.d(TAG, "Recognized type Atom"); return Type.ATOM; } else if (tag.equals(RSS_ROOT) && (xpp.getAttributeValue(null, "version") .equals("2.0"))) { - Log.d(TAG, "Recognized type RSS 2.0"); + if (BuildConfig.DEBUG) Log.d(TAG, "Recognized type RSS 2.0"); return Type.RSS20; } else { - Log.d(TAG, "Type is invalid"); + if (BuildConfig.DEBUG) Log.d(TAG, "Type is invalid"); throw new UnsupportedFeedtypeException(Type.INVALID); } } else { @@ -59,7 +60,7 @@ public class TypeGetter { } catch (IOException e) { e.printStackTrace(); } - Log.d(TAG, "Type is invalid"); + if (BuildConfig.DEBUG) Log.d(TAG, "Type is invalid"); throw new UnsupportedFeedtypeException(Type.INVALID); } |