logger: Enforce timestamp value to avoid logging server 400 errors

Change-type: patch
Signed-off-by: Cameron Diver <cameron@resin.io>
This commit is contained in:
Cameron Diver 2018-10-11 14:25:38 +01:00
parent 6156825293
commit 3e665c0f4a
No known key found for this signature in database
GPG Key ID: 69264F9C923F55C1

View File

@ -303,7 +303,7 @@ export class Logger {
timestamp = Date.now();
}
return {
timestamp: (new Date(logLine.substr(0, space))).getTime(),
timestamp,
message: logLine.substr(space + 1),
};
}