fix ingest log level

This commit is contained in:
Jonathan Baecker 2024-10-27 21:55:53 +01:00
parent 1b6b9a19aa
commit 054c71e7f6

View File

@ -138,8 +138,12 @@ fn ingest_to_hls_server(manager: ChannelManager) -> Result<(), ProcessError> {
} }
} }
if ingest_is_running.load(Ordering::SeqCst) {
log_line(&line, &config.logging.ingest_level);
} else {
log_line(&line, &config.logging.ffmpeg_level); log_line(&line, &config.logging.ffmpeg_level);
} }
}
if ingest_is_running.load(Ordering::SeqCst) { if ingest_is_running.load(Ordering::SeqCst) {
info!(target: Target::file_mail(), channel = id; "Switch from live ingest to {}", config.processing.mode); info!(target: Target::file_mail(), channel = id; "Switch from live ingest to {}", config.processing.mode);