mirror of
https://github.com/meteor/meteor.git
synced 2026-05-02 03:01:46 -04:00
Adjust white space and old tests in logging.
This commit is contained in:
@@ -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('');
|
||||
|
||||
@@ -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}),
|
||||
|
||||
Reference in New Issue
Block a user