changeset 458:e74f9271d653 am-touch-events

removed/updated logs
author Alain Mazy <alain@mazy.be>
date Tue, 29 Jan 2019 14:48:59 +0100
parents 3b4df9925db6
children dc091ca6fd5f
files Applications/Commands/BaseCommandBuilder.cpp Platforms/Wasm/Defaults.cpp
diffstat 2 files changed, 5 insertions(+), 8 deletions(-) [+]
line wrap: on
line diff
--- a/Applications/Commands/BaseCommandBuilder.cpp	Thu Jan 24 16:42:27 2019 +0100
+++ b/Applications/Commands/BaseCommandBuilder.cpp	Tue Jan 29 14:48:59 2019 +0100
@@ -34,13 +34,12 @@
 
     if (commandJson["commandType"].isString() && commandJson["commandType"].asString() == "generic-no-arg-command")
     {
-        printf("creating a simple command\n");
-        return new GenericNoArgCommand(commandJson["command"].asString().c_str());
+      return new GenericNoArgCommand(commandJson["command"].asString().c_str());
     }
     else if (commandJson["commandType"].isString() && commandJson["commandType"].asString() == "generic-one-string-arg-command")
     {
-        printf("creating a simple command\n");
-        return new GenericNoArgCommand(commandJson["command"].asString().c_str());
+      // TODO: we should create a command with a string arg !
+      return new GenericNoArgCommand(commandJson["command"].asString().c_str());
     }
 
     return NULL;
--- a/Platforms/Wasm/Defaults.cpp	Thu Jan 24 16:42:27 2019 +0100
+++ b/Platforms/Wasm/Defaults.cpp	Tue Jan 29 14:48:59 2019 +0100
@@ -346,15 +346,13 @@
   {
     static std::string output; // we don't want the string to be deallocated when we return to JS code so we always use the same string (this is fine since JS is single-thread)
 
-    printf("SendMessageToStoneApplication\n");
-    printf("%s", message);
+    printf("SendMessageToStoneApplication (JS -> C++): %s\n", message);
 
     if (applicationWasmAdapter.get() != NULL) {
-      printf("sending message to C++\n");
       applicationWasmAdapter->HandleMessageFromWeb(output, std::string(message));
       return output.c_str();
     }
-    printf("This stone application does not have a Web Adapter");
+    printf("This stone application does not have a Web Adapter\n");
     return NULL;
   }