debug: ajout logging detaille dans updateAudioDevice
- Log etapes: update, save, emit event - Try/catch pour capturer erreurs - Aide debugging crash serveur lors sauvegarde config audio
This commit is contained in:
@@ -81,7 +81,7 @@ define(['./workbox-290dd570'], (function (workbox) { 'use strict';
|
|||||||
"revision": "3ca0b8505b4bec776b69afdba2768812"
|
"revision": "3ca0b8505b4bec776b69afdba2768812"
|
||||||
}, {
|
}, {
|
||||||
"url": "index.html",
|
"url": "index.html",
|
||||||
"revision": "0.u556t341pt8"
|
"revision": "0.sfd7biirdr8"
|
||||||
}], {});
|
}], {});
|
||||||
workbox.cleanupOutdatedCaches();
|
workbox.cleanupOutdatedCaches();
|
||||||
workbox.registerRoute(new workbox.NavigationRoute(workbox.createHandlerBoundToURL("index.html"), {
|
workbox.registerRoute(new workbox.NavigationRoute(workbox.createHandlerBoundToURL("index.html"), {
|
||||||
|
|||||||
File diff suppressed because one or more lines are too long
@@ -112,6 +112,9 @@ class ConfigManager extends EventEmitter {
|
|||||||
* Met à jour la configuration audio device
|
* Met à jour la configuration audio device
|
||||||
*/
|
*/
|
||||||
updateAudioDevice(deviceConfig) {
|
updateAudioDevice(deviceConfig) {
|
||||||
|
try {
|
||||||
|
console.log('📝 ConfigManager.updateAudioDevice:', deviceConfig);
|
||||||
|
|
||||||
if (!this.config.audio) {
|
if (!this.config.audio) {
|
||||||
this.config.audio = {};
|
this.config.audio = {};
|
||||||
}
|
}
|
||||||
@@ -135,12 +138,19 @@ class ConfigManager extends EventEmitter {
|
|||||||
this.config.audio.device.bufferSize = deviceConfig.bufferSize;
|
this.config.audio.device.bufferSize = deviceConfig.bufferSize;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
console.log('💾 Sauvegarde configuration...');
|
||||||
this.save(this.config);
|
this.save(this.config);
|
||||||
|
|
||||||
// Émettre événement spécifique
|
// Émettre événement spécifique
|
||||||
|
console.log('📢 Émission événement audio-device-updated');
|
||||||
this.emit('audio-device-updated', this.config.audio.device);
|
this.emit('audio-device-updated', this.config.audio.device);
|
||||||
|
|
||||||
|
console.log('✓ Configuration audio device mise à jour');
|
||||||
return this.config.audio.device;
|
return this.config.audio.device;
|
||||||
|
} catch (error) {
|
||||||
|
console.error('❌ Erreur updateAudioDevice:', error);
|
||||||
|
throw error;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user