cordova-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From agri...@apache.org
Subject android commit: Log a message when exec() is made to an unregistered plugin.
Date Sat, 23 Mar 2013 18:07:49 GMT
Updated Branches:
  refs/heads/master f60d54eae -> 0c7409095


Log a message when exec() is made to an unregistered plugin.


Project: http://git-wip-us.apache.org/repos/asf/cordova-android/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-android/commit/0c740909
Tree: http://git-wip-us.apache.org/repos/asf/cordova-android/tree/0c740909
Diff: http://git-wip-us.apache.org/repos/asf/cordova-android/diff/0c740909

Branch: refs/heads/master
Commit: 0c740909534b355cd5628380689544c4f2c2a8b8
Parents: f60d54e
Author: Andrew Grieve <agrieve@chromium.org>
Authored: Sat Mar 23 14:07:22 2013 -0400
Committer: Andrew Grieve <agrieve@chromium.org>
Committed: Sat Mar 23 14:07:22 2013 -0400

----------------------------------------------------------------------
 .../src/org/apache/cordova/api/PluginManager.java  |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-android/blob/0c740909/framework/src/org/apache/cordova/api/PluginManager.java
----------------------------------------------------------------------
diff --git a/framework/src/org/apache/cordova/api/PluginManager.java b/framework/src/org/apache/cordova/api/PluginManager.java
index 337ef12..774b21c 100755
--- a/framework/src/org/apache/cordova/api/PluginManager.java
+++ b/framework/src/org/apache/cordova/api/PluginManager.java
@@ -30,6 +30,7 @@ import org.xmlpull.v1.XmlPullParserException;
 import android.content.Intent;
 import android.content.res.XmlResourceParser;
 
+import android.util.Log;
 import android.webkit.WebResourceResponse;
 
 /**
@@ -213,6 +214,7 @@ public class PluginManager {
     public boolean exec(String service, String action, String callbackId, String rawArgs)
{
         CordovaPlugin plugin = this.getPlugin(service);
         if (plugin == null) {
+            Log.d(TAG, "exec() call to unknown plugin: " + service);
             PluginResult cr = new PluginResult(PluginResult.Status.CLASS_NOT_FOUND_EXCEPTION);
             app.sendPluginResult(cr, callbackId);
             return true;


Mime
View raw message