Skip to content

Commit

Permalink
fix: Timing logs with millisecond timestamp
Browse files Browse the repository at this point in the history
This will put clisk konnector logs in proper order.
  • Loading branch information
doubleface committed Aug 10, 2023
1 parent 1729e64 commit a7e6463
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/libs/ReactNativeLauncher.js
Original file line number Diff line number Diff line change
Expand Up @@ -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')
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit a7e6463

Please sign in to comment.