# HG changeset patch # User Alain Mazy # Date 1548769739 -3600 # Node ID e74f9271d653d30e019c59b44e58a6654ea737a0 # Parent 3b4df9925db6bb44e4c0cda5ac12eefb093f944e removed/updated logs diff -r 3b4df9925db6 -r e74f9271d653 Applications/Commands/BaseCommandBuilder.cpp --- 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; diff -r 3b4df9925db6 -r e74f9271d653 Platforms/Wasm/Defaults.cpp --- 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; }