mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-07-19 01:17:18 +00:00
extended testing mode to writing logs to screen
This commit is contained in:
parent
5495021900
commit
ab593f0a7c
1 changed files with 7 additions and 2 deletions
|
|
@ -213,9 +213,14 @@ CloudServer.init=(function(){
|
|||
CloudServer.Config = require('./config');
|
||||
console.log('config.json readed');
|
||||
/* if command line parameter testing resolved
|
||||
* setting config to testing
|
||||
* setting config to testing, so server
|
||||
* not created, just init and
|
||||
* all logs writed to screen
|
||||
*/
|
||||
if(process.argv[1]==='testing')CloudServer.Config.server=false;
|
||||
if(process.argv[1]==='testing'){
|
||||
CloudServer.Config.server=false;
|
||||
CloudServer.logs=true;
|
||||
}
|
||||
|
||||
if(CloudServer.Config.logs){
|
||||
console.log('log param setted up in config.json\n' +
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue