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');