Skip to content

Commit

Permalink
fix logging statements
Browse files Browse the repository at this point in the history
  • Loading branch information
Hweinstock committed Jan 3, 2025
1 parent c1975f9 commit 601050d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/core/src/shared/utilities/processUtils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ export class ChildProcessTracker {

private async checkProcessUsage(pid: number): Promise<void> {
if (!this.#pids.has(pid)) {
ChildProcessTracker.logger.warn(`ChildProcess: Missing process with id ${pid}`)
ChildProcessTracker.logger.warn(`Missing process with id ${pid}`)
return
}
const stats = await this.getUsage(pid)
Expand All @@ -113,7 +113,7 @@ export class ChildProcessTracker {
)
}
if (stats.cpu > ChildProcessTracker.thresholds.cpu) {
ChildProcessTracker.logger.warn(`ChildProcess: Process ${pid} exceeded cpu threshold: ${stats.cpu}`)
ChildProcessTracker.logger.warn(`Process ${pid} exceeded cpu threshold: ${stats.cpu}`)
}
}
}
Expand Down Expand Up @@ -186,7 +186,7 @@ export class ChildProcessTracker {
// isWin() leads to circular dependency.
return process.platform === 'win32' ? getWindowsUsage() : getUnixUsage()
} catch (e) {
ChildProcessTracker.logger.warn(`ChildProcess: Failed to get process stats for ${pid}: ${e}`)
ChildProcessTracker.logger.warn(`Failed to get process stats for ${pid}: ${e}`)
return { cpu: 0, memory: 0 }
}
}
Expand Down

0 comments on commit 601050d

Please sign in to comment.