mirror of
https://github.com/DeviceFarmer/stf.git
synced 2026-04-17 23:53:25 +02:00
Don't force new timestamp in Log.Entry constructor.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user