1
0
Fork 0
mirror of https://github.com/openstf/stf synced 2025-10-04 18:29:17 +02:00

Don't force new timestamp in Log.Entry constructor.

This commit is contained in:
Simo Kinnunen 2014-01-29 18:14:05 +09:00
parent ba56b8d70c
commit 39989c6e7a

View file

@ -27,8 +27,8 @@ function Log(tag, stream) {
util.inherits(Log, events.EventEmitter) util.inherits(Log, events.EventEmitter)
Log.Entry = function(priority, tag, pid, identifier, message) { Log.Entry = function(time, priority, tag, pid, identifier, message) {
this.time = Date.now() this.time = time
this.priority = priority this.priority = priority
this.tag = tag this.tag = tag
this.pid = pid this.pid = pid
@ -70,7 +70,8 @@ Log.prototype._color = function(priority) {
Log.prototype._entry = function(priority, args) { Log.prototype._entry = function(priority, args) {
return new Log.Entry( return new Log.Entry(
priority Date.now()
, priority
, this.tag , this.tag
, process.pid , process.pid
, this.localIdentifier || Log.globalIdentifier , this.localIdentifier || Log.globalIdentifier