cordova-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bows...@apache.org
Subject android commit: CB-2810: Add Source and Line Number to logging, I wish we could tell the Web Console to shut up if it doesn't match our console
Date Tue, 23 Apr 2013 21:56:28 GMT
Updated Branches:
  refs/heads/master 934cf3216 -> a32cf2344


CB-2810: Add Source and Line Number to logging, I wish we could tell the Web Console to shut
up if it doesn't match our console


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

Branch: refs/heads/master
Commit: a32cf2344ff03cfe8eb67c73a38578ace41a7dd6
Parents: 934cf32
Author: Joe Bowser <bowserj@apache.org>
Authored: Tue Apr 23 14:56:14 2013 -0700
Committer: Joe Bowser <bowserj@apache.org>
Committed: Tue Apr 23 14:56:14 2013 -0700

----------------------------------------------------------------------
 .../org/apache/cordova/CordovaChromeClient.java    |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-android/blob/a32cf234/framework/src/org/apache/cordova/CordovaChromeClient.java
----------------------------------------------------------------------
diff --git a/framework/src/org/apache/cordova/CordovaChromeClient.java b/framework/src/org/apache/cordova/CordovaChromeClient.java
index fb6d45f..d9da6ba 100755
--- a/framework/src/org/apache/cordova/CordovaChromeClient.java
+++ b/framework/src/org/apache/cordova/CordovaChromeClient.java
@@ -322,8 +322,8 @@ public class CordovaChromeClient extends WebChromeClient {
     public boolean onConsoleMessage(ConsoleMessage consoleMessage)
     {
         if (consoleMessage.message() != null)
-            LOG.d(TAG, consoleMessage.message());
-        return super.onConsoleMessage(consoleMessage);
+            LOG.d(TAG, "%s: Line %d : %s" , consoleMessage.sourceId() , consoleMessage.lineNumber(),
consoleMessage.message());
+         return super.onConsoleMessage(consoleMessage);
     }
 
     @Override


Mime
View raw message