mirror of
https://github.com/openstf/stf
synced 2025-10-04 10:19:30 +02:00
Don't force new timestamp in Log.Entry constructor.
This commit is contained in:
parent
ba56b8d70c
commit
39989c6e7a
1 changed files with 4 additions and 3 deletions
|
@ -27,8 +27,8 @@ function Log(tag, stream) {
|
|||
|
||||
util.inherits(Log, events.EventEmitter)
|
||||
|
||||
Log.Entry = function(priority, tag, pid, identifier, message) {
|
||||
this.time = Date.now()
|
||||
Log.Entry = function(time, priority, tag, pid, identifier, message) {
|
||||
this.time = time
|
||||
this.priority = priority
|
||||
this.tag = tag
|
||||
this.pid = pid
|
||||
|
@ -70,7 +70,8 @@ Log.prototype._color = function(priority) {
|
|||
|
||||
Log.prototype._entry = function(priority, args) {
|
||||
return new Log.Entry(
|
||||
priority
|
||||
Date.now()
|
||||
, priority
|
||||
, this.tag
|
||||
, process.pid
|
||||
, this.localIdentifier || Log.globalIdentifier
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue