mirror of https://github.com/jetkvm/kvm.git
fix(audio): improve logging for Opus config and subprocess status
Add detailed logging when sending Opus configuration to audio input subprocess Include supervisor running status in log when subprocess is not connected
This commit is contained in:
parent
fd7608384a
commit
f51f6da2de
|
@ -309,6 +309,7 @@ func SetMicrophoneQuality(quality AudioQuality) {
|
||||||
DTX: dtx,
|
DTX: dtx,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
logger.Info().Interface("opusConfig", opusConfig).Msg("sending Opus configuration to audio input subprocess")
|
||||||
if err := supervisor.SendOpusConfig(opusConfig); err != nil {
|
if err := supervisor.SendOpusConfig(opusConfig); err != nil {
|
||||||
logger.Warn().Err(err).Msg("failed to send dynamic Opus config update, subprocess may need restart")
|
logger.Warn().Err(err).Msg("failed to send dynamic Opus config update, subprocess may need restart")
|
||||||
// Fallback to restart if dynamic update fails
|
// Fallback to restart if dynamic update fails
|
||||||
|
@ -320,7 +321,7 @@ func SetMicrophoneQuality(quality AudioQuality) {
|
||||||
logger.Info().Msg("audio input quality updated dynamically with complete Opus configuration")
|
logger.Info().Msg("audio input quality updated dynamically with complete Opus configuration")
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
logger.Info().Msg("audio input subprocess not connected, configuration will apply on next start")
|
logger.Info().Bool("supervisor_running", supervisor.IsRunning()).Msg("audio input subprocess not connected, configuration will apply on next start")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue