diff --git a/core/modules/commands/listen.js b/core/modules/commands/listen.js index 3c5f6a63a..9600fdc48 100644 --- a/core/modules/commands/listen.js +++ b/core/modules/commands/listen.js @@ -36,7 +36,8 @@ Command.prototype.execute = function() { // Set up server this.server = new Server({ wiki: this.commander.wiki, - variables: self.params + variables: self.params, + verbose: this.commander.verbose }); var nodeServer = this.server.listen(); $tw.hooks.invokeHook("th-server-command-post-start",this.server,nodeServer,"tiddlywiki"); diff --git a/core/modules/server/server.js b/core/modules/server/server.js index 62e72d64b..105729e76 100644 --- a/core/modules/server/server.js +++ b/core/modules/server/server.js @@ -27,6 +27,7 @@ A simple HTTP server with regexp-based routes options: variables - optional hashmap of variables to set (a misnomer - they are really constant parameters) routes - optional array of routes to use wiki - reference to wiki object + verbose - boolean */ function Server(options) { var self = this; @@ -34,6 +35,7 @@ function Server(options) { this.authenticators = options.authenticators || []; this.wiki = options.wiki; this.boot = options.boot || $tw.boot; + this.verbose = !!options.verbose; // Initialise the variables this.variables = $tw.utils.extend({},this.defaultVariables); if(options.variables) { @@ -454,7 +456,7 @@ Server.prototype.listen = function(port,host,prefix) { // Warn if required plugins are missing var missing = []; for (var index=0; index