From a7e646350badb7e06cd7ddc8da3aeaa2e6d7818f Mon Sep 17 00:00:00 2001 From: doubleface Date: Thu, 10 Aug 2023 10:31:03 +0200 Subject: [PATCH] fix: Timing logs with millisecond timestamp This will put clisk konnector logs in proper order. --- src/libs/ReactNativeLauncher.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/libs/ReactNativeLauncher.js b/src/libs/ReactNativeLauncher.js index 142a696c6..555d6a350 100644 --- a/src/libs/ReactNativeLauncher.js +++ b/src/libs/ReactNativeLauncher.js @@ -58,7 +58,8 @@ class ReactNativeLauncher extends Launcher { this.controller = new AbortController() const wrapTimer = wrapTimerFactory({ - logFn: msg => this.log({ level: 'info', msg }) + logFn: msg => + this.log({ level: 'info', msg, timestamp: new Date().toISOString() }) }) this.getExistingFilesIndex = wrapTimer(this, 'getExistingFilesIndex') @@ -99,7 +100,7 @@ class ReactNativeLauncher extends Launcher { */ log(logContent) { const context = this.getStartContext() - const slug = context.konnector.slug // konnector attribut is available before manifest one + const slug = context.konnector.slug // konnector attribute is available before manifest one let jobId if (context.job) { jobId = context.job.id