You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by pu...@apache.org on 2013/06/27 10:27:08 UTC
git commit: Console log was spitting out too much text
Updated Branches:
refs/heads/master f4fdc1e14 -> 5820369ca
Console log was spitting out too much text
Project: http://git-wip-us.apache.org/repos/asf/cordova-wp8/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-wp8/commit/5820369c
Tree: http://git-wip-us.apache.org/repos/asf/cordova-wp8/tree/5820369c
Diff: http://git-wip-us.apache.org/repos/asf/cordova-wp8/diff/5820369c
Branch: refs/heads/master
Commit: 5820369caf7fed057f00f6ad7c32dd3155a1a961
Parents: f4fdc1e
Author: Jesse MacFadyen <pu...@gmail.com>
Authored: Thu Jun 27 01:26:50 2013 -0700
Committer: Jesse MacFadyen <pu...@gmail.com>
Committed: Thu Jun 27 01:26:50 2013 -0700
----------------------------------------------------------------------
common/Plugins/DebugConsole.cs | 9 ++++++---
1 file changed, 6 insertions(+), 3 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/cordova-wp8/blob/5820369c/common/Plugins/DebugConsole.cs
----------------------------------------------------------------------
diff --git a/common/Plugins/DebugConsole.cs b/common/Plugins/DebugConsole.cs
index fa9863a..fdf504c 100644
--- a/common/Plugins/DebugConsole.cs
+++ b/common/Plugins/DebugConsole.cs
@@ -30,18 +30,21 @@ namespace WPCordovaClassLib.Cordova.Commands
public class DebugConsole : BaseCommand
{
// warn, error
- public void log(string msg)
+ public void log(string args)
{
+ string msg = JSON.JsonHelper.Deserialize<string[]>(args)[0];
Debug.WriteLine("Log:" + msg);
}
- public void error(string msg)
+ public void error(string args)
{
+ string msg = JSON.JsonHelper.Deserialize<string[]>(args)[0];
Debug.WriteLine("Error:" + msg);
}
- public void warn(string msg)
+ public void warn(string args)
{
+ string msg = JSON.JsonHelper.Deserialize<string[]>(args)[0];
Debug.WriteLine("Warn:" + msg);
}