diff --git a/lib/smtp-logger.js b/lib/smtp-logger.js index 3a182d6..414746d 100644 --- a/lib/smtp-logger.js +++ b/lib/smtp-logger.js @@ -43,7 +43,7 @@ module.exports = function(logger) { var output = ''; // add a logging level indicator up front - output += levels[level].bg(' ' + levels[level].sign + ' ') + ' '; + output += colors.white(levels[level].bg(' ' + levels[level].sign + ' ') + ' '); // log the id and optionally the subId output += id + colors.grey('#') + (subId || '0') + ' '; diff --git a/test/3-relay-simple.js b/test/3-relay-simple.js index 1f68379..654ed34 100644 --- a/test/3-relay-simple.js +++ b/test/3-relay-simple.js @@ -32,7 +32,7 @@ module.exports = function() { port: 2323, logger: { verbose: function() { - debug ? console.log(colors.bgYellow(' LOCAL ') + ' ' + arguments[0]) : function(){}; + debug ? console.log(colors.white(colors.bgYellow(' LOCAL ') + ' ') + arguments[0]) : function () { }; } }, domains: ['localhost'] @@ -46,7 +46,7 @@ module.exports = function() { port: 2324, logger: { verbose: function() { - debug ? console.log(colors.bgWhite(' REMOT ') + ' ' + arguments[0]) : function(){}; + debug ? console.log(colors.white(colors.bgCyan(' REMOT ') + ' ' + arguments[0])) : function(){}; } }, relay: { diff --git a/test/4-relay-temporary-error.js b/test/4-relay-temporary-error.js index 22f2a28..b39f043 100644 --- a/test/4-relay-temporary-error.js +++ b/test/4-relay-temporary-error.js @@ -36,7 +36,7 @@ module.exports = function() { port: 2328, logger: { verbose: function() { - debug ? console.log(colors.bgYellow(' LOCAL ') + ' ' + arguments[0]) : function(){}; + debug ? console.log(colors.white(colors.bgYellow(' LOCAL ') + ' ') + arguments[0]) : function(){}; } }, domains: ['localhost'] @@ -60,7 +60,7 @@ module.exports = function() { port: 2329, logger: { verbose: function() { - debug ? console.log(colors.bgWhite(' REMOT ') + ' ' + arguments[0]) : function(){}; + debug ? console.log(colors.white(colors.bgCyan(' REMOT ') + ' ') + arguments[0]) : function(){}; } }, relay: {