[mirotalk] - add log

This commit is contained in:
Miroslav Pejic
2025-03-23 17:19:54 +01:00
parent 9cc58fddfd
commit a79ea8d9f8
+2
View File
@@ -2144,11 +2144,13 @@ function safeRequire(filePath) {
* Cleanup HTML injector when the application is shutting down
*/
process.on('SIGINT', () => {
log.debug('PROCESS', 'SIGINT');
htmlInjector.cleanup();
process.exit();
});
process.on('SIGTERM', () => {
log.debug('PROCESS', 'SIGTERM');
htmlInjector.cleanup();
process.exit();
});