chore(server): 屏蔽 HLS RTMP 推流失败的错误日志
由于当前环境未配置 RTMP 服务器,当 ffmpeg 尝试推送音频流到 127.0.0.1:1935 时会一直报错 `Connection refused` 从而导致控制台刷屏。 现将该错误日志注释屏蔽,使控制台保持清爽。
This commit is contained in:
@@ -1524,7 +1524,8 @@ function runFfmpegRtmpPush(streamName, seq) {
|
||||
state.currentProcess = null;
|
||||
if (code !== 0) {
|
||||
state.lastError = (stderr || `ffmpeg exited with code ${code}`).trim();
|
||||
log('ERROR', `HLS push failed for ${streamName}: ${state.lastError}`);
|
||||
// Suppress HLS push failed logs
|
||||
// log('ERROR', `HLS push failed for ${streamName}: ${state.lastError}`);
|
||||
}
|
||||
try { fs.unlinkSync(tmpAacPath); } catch {}
|
||||
resolve();
|
||||
@@ -1584,7 +1585,8 @@ function runFfmpegRtmpPush(streamName, seq) {
|
||||
state.currentProcess = null;
|
||||
if (code !== 0) {
|
||||
state.lastError = (stderr || `ffmpeg exited with code ${code}`).trim();
|
||||
log('ERROR', `HLS push failed for ${streamName}: ${state.lastError}`);
|
||||
// Suppress HLS push failed logs
|
||||
// log('ERROR', `HLS push failed for ${streamName}: ${state.lastError}`);
|
||||
}
|
||||
try { fs.unlinkSync(listPath); } catch {}
|
||||
resolve();
|
||||
|
||||
Reference in New Issue
Block a user