Adjust white space and old tests in logging.

This commit is contained in:
Slava Kim
2013-05-29 12:02:31 -07:00
parent 50bd0ab0bc
commit a3447577ec
2 changed files with 3 additions and 3 deletions

View File

@@ -192,7 +192,7 @@ Log.format = function (obj, options) {
var appInfo = '';
if (appName) appInfo += appName;
if (originApp && originApp !== appName) appInfo += ':' + originApp;
if (appInfo) appInfo = '[' + appInfo + ']';
if (appInfo) appInfo = ' [' + appInfo + ']';
var stderrIndicator = stderr ? ' (STDERR)' : '';
@@ -201,7 +201,7 @@ Log.format = function (obj, options) {
dateStamp,
'-',
timeStamp,
timeInexact ? '?' : ' ',
timeInexact ? '?' : '',
appInfo,
sourceInfo,
stderrIndicator].join('');

View File

@@ -61,7 +61,7 @@ Tinytest.add("logging - format", function (test) {
test.equal(
Log.format({message: "message", time: time, timeInexact: true, level: level}),
level.charAt(0).toUpperCase() + "20120908-07:06:05.004?message");
level.charAt(0).toUpperCase() + "20120908-07:06:05.004? message");
test.equal(
Log.format({foo1: "bar1", foo2: "bar2", time: time, level: level}),