mirror of
https://github.com/balena-os/balena-supervisor.git
synced 2025-04-10 04:39:55 +00:00
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:
parent
6156825293
commit
3e665c0f4a
@ -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),
|
||||
};
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user