From 18f5cf383433c096d4944bb44d748a8d39d8460d Mon Sep 17 00:00:00 2001 From: Tim Su Date: Fri, 8 Oct 2010 19:20:48 -0700 Subject: [PATCH] log login errors to logcat --- .../com/todoroo/astrid/gtasks/sync/GtasksSyncProvider.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/astrid/plugin-src/com/todoroo/astrid/gtasks/sync/GtasksSyncProvider.java b/astrid/plugin-src/com/todoroo/astrid/gtasks/sync/GtasksSyncProvider.java index 2b4ee6f34..e57f09917 100644 --- a/astrid/plugin-src/com/todoroo/astrid/gtasks/sync/GtasksSyncProvider.java +++ b/astrid/plugin-src/com/todoroo/astrid/gtasks/sync/GtasksSyncProvider.java @@ -235,12 +235,13 @@ public class GtasksSyncProvider extends SyncProvider { gcm.authenticate(false); } catch (GoogleLoginException e) { Toast.makeText(activity, R.string.gtasks_login_error, Toast.LENGTH_LONG).show(); + Log.e("gtasks", "login", e); return; } catch (IOException e) { Toast.makeText(activity, R.string.SyP_ioerror, Toast.LENGTH_LONG).show(); + Log.e("gtasks", "login", e); } String token = gcm.getToken(); - System.err.println("got token " + token); gtasksPreferenceService.setToken(token); activity.startService(new Intent(SyncBackgroundService.SYNC_ACTION, null, activity, GtasksBackgroundService.class));