From 872fcdd3d5910490e4023b1f3659a1cba109452c Mon Sep 17 00:00:00 2001 From: "Tod E. Kurt" Date: Sun, 23 Jun 2019 14:30:30 -0700 Subject: [PATCH] fix whitespace --- app/logger.js | 73 ++++++++++++++++++++++++++------------------------- 1 file changed, 37 insertions(+), 36 deletions(-) diff --git a/app/logger.js b/app/logger.js index 8e5360c..1a9aa56 100644 --- a/app/logger.js +++ b/app/logger.js @@ -21,42 +21,43 @@ if( !logconfig.ignoredSources ) { logconfig.ignoredSources = []; } var Logger = { - /** - * Log a message - * - * @method function - * @return {[type]} [description] - */ - msg: function(/* msg,msg,msg */) { - var iargs = arguments; - if( logconfig.showDebug ) { - var ignore = logconfig.ignoredSources.some( function(is) { - return iargs[0].toString().match(is) ; - }); - if( ignore ) { return; } - - var args = Array.prototype.slice.call(arguments); - // args.unshift( Math.floor(new Date().getTime()/1000) + ':'); - args.unshift( new Date().getTime() + ':'); - console.log.apply(console, args ); - } - else { - // do nothing, but later, log to file? - } - // FIXME: log to file? - }, - warn: function() { - var args = Array.prototype.slice.call(arguments); - args.unshift( Math.floor(new Date().getTime()/1000) + ':'); - console.warn.apply(console, args); - // FIXME: log to file? - }, - error: function() { - var args = Array.prototype.slice.call(arguments); - args.unshift( Math.floor(new Date().getTime()/1000) + ':'); - console.error.apply(console, args); - // FIXME: log to file? - } + /** + * Log a message + * + * @method function + * @return {[type]} [description] + */ + + msg: function(/* msg,msg,msg */) { + var iargs = arguments; + if( logconfig.showDebug ) { + var ignore = logconfig.ignoredSources.some( function(is) { + return iargs[0].toString().match(is) ; + }); + if( ignore ) { return; } + + var args = Array.prototype.slice.call(arguments); + // args.unshift( Math.floor(new Date().getTime()/1000) + ':'); + args.unshift( new Date().getTime() + ':'); + console.log.apply(console, args ); + } + else { + // do nothing, but later, log to file? + } + // FIXME: log to file? + }, + warn: function() { + var args = Array.prototype.slice.call(arguments); + args.unshift( Math.floor(new Date().getTime()/1000) + ':'); + console.warn.apply(console, args); + // FIXME: log to file? + }, + error: function() { + var args = Array.prototype.slice.call(arguments); + args.unshift( Math.floor(new Date().getTime()/1000) + ':'); + console.error.apply(console, args); + // FIXME: log to file? + } }; module.exports = Logger;