Rename infoPrefix since it is confusing.

This commit is contained in:
Slava Kim
2013-05-24 15:09:04 -07:00
parent 82c6efb5dd
commit 9631221336

View File

@@ -185,7 +185,7 @@ Log.format = function (obj, options) {
var sourceInfo = (fileName && lineNumber) ?
'(' + fileName + ':' + lineNumber + ')' : '';
var infoPrefix = [
var metaPrefix = [
level.charAt(0).toUpperCase(),
dateStamp,
'-',
@@ -202,7 +202,7 @@ Log.format = function (obj, options) {
}
};
return prettify(infoPrefix, META_COLOR)
return prettify(metaPrefix, META_COLOR)
+ ' '
+ prettify(message, LEVEL_COLORS[level]);
};