From f0dd73695707f68490fecdc0040db11fa35070c8 Mon Sep 17 00:00:00 2001 From: Hossain Khan Date: Fri, 11 Nov 2016 20:47:17 -0500 Subject: [PATCH] [UPDATE] #127 Added meaningful logging. --- .../java/info/hossainkhan/android/core/model/CardItem.java | 3 +-- .../dailynewsheadlines/browser/RowBuilderFactory.java | 2 -- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/core-lib/src/main/java/info/hossainkhan/android/core/model/CardItem.java b/core-lib/src/main/java/info/hossainkhan/android/core/model/CardItem.java index 609bb3f..ee83ad4 100644 --- a/core-lib/src/main/java/info/hossainkhan/android/core/model/CardItem.java +++ b/core-lib/src/main/java/info/hossainkhan/android/core/model/CardItem.java @@ -154,8 +154,7 @@ public static CardItem create(@NonNull final Article article) { width = articleMultimedia.getWidth(); height = articleMultimedia.getHeight(); } else { - String NO_IMAGE_MSG = "Article does not have image."; - Timber.w("%s Total items: %d", NO_IMAGE_MSG, size); + Timber.w("NYTimes article '%s' does not have image.", article.getTitle()); } return new AutoValue_CardItem( diff --git a/tv/src/main/java/info/hossainkhan/dailynewsheadlines/browser/RowBuilderFactory.java b/tv/src/main/java/info/hossainkhan/dailynewsheadlines/browser/RowBuilderFactory.java index 66005e9..90827aa 100644 --- a/tv/src/main/java/info/hossainkhan/dailynewsheadlines/browser/RowBuilderFactory.java +++ b/tv/src/main/java/info/hossainkhan/dailynewsheadlines/browser/RowBuilderFactory.java @@ -52,8 +52,6 @@ class RowBuilderFactory { */ static Row buildCardRow(final Context context, final NavigationRow navigationRow) { int navigationRowType = navigationRow.type(); - Timber.d("buildCardRow() - Row type: %d", navigationRowType); - switch (navigationRowType) { case NavigationRow.TYPE_SECTION_HEADER: return new SectionRow(new HeaderItem(navigationRow.title()));