From e9ab0a4859114aca578cf509f3270623c343d996 Mon Sep 17 00:00:00 2001 From: Sam Bosley Date: Thu, 15 Nov 2012 13:19:18 -0800 Subject: [PATCH] Implemented Debug --- .../com/todoroo/astrid/actfm/sync/messages/Debug.java | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/astrid/plugin-src/com/todoroo/astrid/actfm/sync/messages/Debug.java b/astrid/plugin-src/com/todoroo/astrid/actfm/sync/messages/Debug.java index 80c7df152..bb8e20c00 100644 --- a/astrid/plugin-src/com/todoroo/astrid/actfm/sync/messages/Debug.java +++ b/astrid/plugin-src/com/todoroo/astrid/actfm/sync/messages/Debug.java @@ -2,16 +2,21 @@ package com.todoroo.astrid.actfm.sync.messages; import org.json.JSONObject; +import android.text.TextUtils; +import android.util.Log; + public class Debug extends ServerToClientMessage { public Debug(JSONObject json) { super(json); - throw new RuntimeException("No constructor for Debug implemented"); //$NON-NLS-1$ } @Override + @SuppressWarnings("nls") public void processMessage() { - // TODO Auto-generated method stub + String message = json.optString("message"); + if (!TextUtils.isEmpty(message)) + Log.w("actfm-debug-message", message); } }