From 19c6a7403f8228e88f3a500d2f21c18c4f54e63f Mon Sep 17 00:00:00 2001 From: Dominic Bosch Date: Wed, 13 Nov 2013 20:35:17 +0100 Subject: [PATCH] push testing --- README.md | 3 +-- js/logging.js | 2 +- js/server.js | 1 + 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 0e51829..f025515 100644 --- a/README.md +++ b/README.md @@ -50,8 +50,7 @@ Run test suite: Create the doc *(to be accessed via the webserver, e.g.: localhost:8125/doc/)*: - node create_doc - + node create_doc _ diff --git a/js/logging.js b/js/logging.js index b7b959b..00fc551 100644 --- a/js/logging.js +++ b/js/logging.js @@ -15,7 +15,7 @@ exports.print = function(module, msg) { console.log((new Date()).toISOString() + ' | ' + module + ' | ' + msg); }; -// @function error(module, msg) +// @method error(module, msg) /* * Prints a log to stderr. diff --git a/js/server.js b/js/server.js index 0dc677e..38bafe9 100644 --- a/js/server.js +++ b/js/server.js @@ -88,6 +88,7 @@ fs.readFile(path.resolve(__dirname, '..', 'config', 'config.json'), 'utf8', func } }); +// Send message process.on('message', function(cmd) { if(typeof procCmds[cmd] === 'function') procCmds[cmd](); else console.error('err with command');