chore(05-03): clean up debug logging after finding root cause

This commit is contained in:
Nuwan 2026-01-16 13:14:12 +05:30
parent 56573c6db7
commit d264241c78
2 changed files with 1 additions and 14 deletions

View File

@ -272,22 +272,11 @@ const JKSessionScreen = () => {
// Alert callback handler - routes backend alerts to appropriate handlers
window.JK.HandleAlertCallback = (type, text) => {
console.log('[HandleAlertCallback] Alert received:', { type, text });
// BACKEND_MIXER_CHANGE = 2
if (type === 2) {
console.log('[HandleAlertCallback] BACKEND_MIXER_CHANGE detected:', text);
console.log('[HandleAlertCallback] sessionModel:', sessionModel);
console.log('[HandleAlertCallback] sessionModel.onBackendMixerChanged:', sessionModel?.onBackendMixerChanged);
console.log('[HandleAlertCallback] BACKEND_MIXER_CHANGE:', text);
if (sessionModel && sessionModel.onBackendMixerChanged) {
console.log('[HandleAlertCallback] Calling sessionModel.onBackendMixerChanged...');
sessionModel.onBackendMixerChanged(type, text);
console.log('[HandleAlertCallback] Called sessionModel.onBackendMixerChanged');
} else {
console.warn('[HandleAlertCallback] sessionModel.onBackendMixerChanged not available', {
hasSessionModel: !!sessionModel,
hasMethod: !!(sessionModel?.onBackendMixerChanged)
});
}
}
// Handle other alert types as needed

View File

@ -843,8 +843,6 @@ export default function useSessionModel(app, server, sessionScreen) {
const onBackendMixerChanged = useCallback(async (type, text) => {
logger.debug("BACKEND_MIXER_CHANGE alert. reason:" + text);
logger.debug("BACKEND_MIXER_CHANGE inSession():", inSession());
logger.debug("BACKEND_MIXER_CHANGE sessionIdRef.current:", sessionIdRef.current);
if (inSession() && text === "RebuildAudioIoControl") {
if (backendMixerAlertThrottleTimerRef.current) {