mirror of
https://github.com/heygen-com/hyperframes.git
synced 2026-09-09 20:07:39 +00:00
fix(engine): emit SystemMemory cgroup notice to stderr, not stdout (#2520)
This commit is contained in:
@@ -93,7 +93,10 @@ function getCgroupLimitMb(): number | null {
|
||||
|
||||
_cachedCgroupLimitMb = parseCgroupLimitMb(v2Content, v1Content);
|
||||
if (_cachedCgroupLimitMb !== null) {
|
||||
console.info(
|
||||
// stderr, not stdout: this is a diagnostic notice, and commands like `check --json`
|
||||
// write their machine-readable payload to stdout. A banner on stdout corrupts that
|
||||
// payload for any JSON consumer (it broke the Video Agent's hyperframes check parse).
|
||||
console.warn(
|
||||
`[SystemMemory] cgroup memory limit detected: ${_cachedCgroupLimitMb} MiB — ` +
|
||||
`it governs memory-adaptive render behaviour instead of host RAM.`,
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user