From ddf272bbb05f633aca36675044b78858fb7902ad Mon Sep 17 00:00:00 2001 From: Jesse Gibson Date: Mon, 14 Nov 2016 17:00:06 -0700 Subject: [PATCH] Allow greeting messages to be opt-out If you use gun a bunch, you've probably noticed the messages like "Hello wonderful person :)" and "WARNING: This file.js module...". This PR allows you to silence them. Use `Gun.log.off = true` to bring peace back to your workflow. > **Note:** great when used with file watchers like nodemon." --- lib/server.js | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/lib/server.js b/lib/server.js index a6082d4c..fbe858a1 100644 --- a/lib/server.js +++ b/lib/server.js @@ -1,9 +1,13 @@ -;(function(){ - console.log("Hello wonderful person! :) I'm mark@gunDB.io, message me for help or with hatemail. I want to hear from you! <3"); - var Gun = require('../gun'); - console.log("TODO: MARK! UPDATE S3 DRIVER BEFORE PUBLISHING!") +;(function(){ + var Gun = require('../gun'); //require('./s3'); require('./wsp/server'); - require('./file'); - module.exports = Gun; + require('./file'); + Gun.log( + 'Hello wonderful person! :)\n' + + 'I\'m mark@gunDB.io, message me for help or with hatemail. ' + + 'I want to hear from you! <3' + ); + Gun.log('TODO: MARK! UPDATE S3 DRIVER BEFORE PUBLISHING!'); + module.exports = Gun; }());