OSDN Git Service

Removing some unnecessary stacktraces from the log
authorSunny Goyal <sunnygoyal@google.com>
Mon, 27 Mar 2017 18:22:36 +0000 (11:22 -0700)
committerSunny Goyal <sunnygoyal@google.com>
Mon, 27 Mar 2017 18:23:18 +0000 (11:23 -0700)
Bug: 36604650
Change-Id: If754aacf37fed5fdc9ff419812c0924ad136eb45

src/com/android/launcher3/AutoInstallsLayout.java

index 2e017df..c4086a8 100644 (file)
@@ -195,7 +195,7 @@ public class AutoInstallsLayout {
         try {
             return parseLayout(mLayoutId, screenIds);
         } catch (Exception e) {
-            Log.w(TAG, "Got exception parsing layout.", e);
+            Log.e(TAG, "Error parsing layout: " + e);
             return -1;
         }
     }
@@ -362,7 +362,7 @@ public class AutoInstallsLayout {
                     return addShortcut(info.loadLabel(mPackageManager).toString(),
                             intent, Favorites.ITEM_TYPE_APPLICATION);
                 } catch (PackageManager.NameNotFoundException e) {
-                    Log.e(TAG, "Unable to add favorite: " + packageName + "/" + className, e);
+                    Log.e(TAG, "Favorite not found: " + packageName + "/" + className);
                 }
                 return -1;
             } else {