Skip to content

Commit 601050d

Browse files
committed
fix logging statements
1 parent c1975f9 commit 601050d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

packages/core/src/shared/utilities/processUtils.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ export class ChildProcessTracker {
101101

102102
private async checkProcessUsage(pid: number): Promise<void> {
103103
if (!this.#pids.has(pid)) {
104-
ChildProcessTracker.logger.warn(`ChildProcess: Missing process with id ${pid}`)
104+
ChildProcessTracker.logger.warn(`Missing process with id ${pid}`)
105105
return
106106
}
107107
const stats = await this.getUsage(pid)
@@ -113,7 +113,7 @@ export class ChildProcessTracker {
113113
)
114114
}
115115
if (stats.cpu > ChildProcessTracker.thresholds.cpu) {
116-
ChildProcessTracker.logger.warn(`ChildProcess: Process ${pid} exceeded cpu threshold: ${stats.cpu}`)
116+
ChildProcessTracker.logger.warn(`Process ${pid} exceeded cpu threshold: ${stats.cpu}`)
117117
}
118118
}
119119
}
@@ -186,7 +186,7 @@ export class ChildProcessTracker {
186186
// isWin() leads to circular dependency.
187187
return process.platform === 'win32' ? getWindowsUsage() : getUnixUsage()
188188
} catch (e) {
189-
ChildProcessTracker.logger.warn(`ChildProcess: Failed to get process stats for ${pid}: ${e}`)
189+
ChildProcessTracker.logger.warn(`Failed to get process stats for ${pid}: ${e}`)
190190
return { cpu: 0, memory: 0 }
191191
}
192192
}

0 commit comments

Comments
 (0)