log login errors to logcat

pull/14/head
Tim Su 15 years ago
parent 0158868f2f
commit 18f5cf3834

@ -235,12 +235,13 @@ public class GtasksSyncProvider extends SyncProvider<GtasksTaskContainer> {
gcm.authenticate(false); gcm.authenticate(false);
} catch (GoogleLoginException e) { } catch (GoogleLoginException e) {
Toast.makeText(activity, R.string.gtasks_login_error, Toast.LENGTH_LONG).show(); Toast.makeText(activity, R.string.gtasks_login_error, Toast.LENGTH_LONG).show();
Log.e("gtasks", "login", e);
return; return;
} catch (IOException e) { } catch (IOException e) {
Toast.makeText(activity, R.string.SyP_ioerror, Toast.LENGTH_LONG).show(); Toast.makeText(activity, R.string.SyP_ioerror, Toast.LENGTH_LONG).show();
Log.e("gtasks", "login", e);
} }
String token = gcm.getToken(); String token = gcm.getToken();
System.err.println("got token " + token);
gtasksPreferenceService.setToken(token); gtasksPreferenceService.setToken(token);
activity.startService(new Intent(SyncBackgroundService.SYNC_ACTION, null, activity.startService(new Intent(SyncBackgroundService.SYNC_ACTION, null,
activity, GtasksBackgroundService.class)); activity, GtasksBackgroundService.class));

Loading…
Cancel
Save