From a3447577ecd950d1180e7b48204aa3ba60decfca Mon Sep 17 00:00:00 2001 From: Slava Kim Date: Wed, 29 May 2013 12:02:31 -0700 Subject: [PATCH] Adjust white space and old tests in logging. --- packages/logging/logging.js | 4 ++-- packages/logging/logging_test.js | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/logging/logging.js b/packages/logging/logging.js index 4be0668d4e..3eb1c7d0ab 100644 --- a/packages/logging/logging.js +++ b/packages/logging/logging.js @@ -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(''); diff --git a/packages/logging/logging_test.js b/packages/logging/logging_test.js index e23590adeb..f0572fd229 100644 --- a/packages/logging/logging_test.js +++ b/packages/logging/logging_test.js @@ -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}),