Skip to content
Snippets Groups Projects
Commit f0ca6bf8 authored by Simon Döring's avatar Simon Döring
Browse files

Improve cleanup debug messages

parent 6bd1074a
Branches
No related tags found
No related merge requests found
...@@ -66,7 +66,7 @@ class JanusRoom { ...@@ -66,7 +66,7 @@ class JanusRoom {
} }
} }
console.log( console.log(
'Warning: Janus session will timeout because long poll got no response' 'Warning: Janus session will timeout because long poll got no response or got cancelled'
); );
this._sessionAlive = false; this._sessionAlive = false;
} }
......
...@@ -3,7 +3,7 @@ import { isBlocking } from '../io-interface/handlers/output-handlers'; ...@@ -3,7 +3,7 @@ import { isBlocking } from '../io-interface/handlers/output-handlers';
import { room } from '../janus/janus-room'; import { room } from '../janus/janus-room';
const asyncExitHandler = async (reason: number | string | Error) => { const asyncExitHandler = async (reason: number | string | Error) => {
console.log('Async exit handler'); console.log(`Async exit handler with exit reason ${reason}`);
try { try {
await room.cleaup(); await room.cleaup();
} catch (err) { } catch (err) {
...@@ -13,8 +13,8 @@ const asyncExitHandler = async (reason: number | string | Error) => { ...@@ -13,8 +13,8 @@ const asyncExitHandler = async (reason: number | string | Error) => {
process.exit(isNaN(+reason) ? 1 : +reason); process.exit(isNaN(+reason) ? 1 : +reason);
}; };
const syncExitHandler = () => { const syncExitHandler = (code: number | string) => {
console.log('Sync exit handler'); console.log(`Sync exit handler with code ${code}`);
socketIO.emit('remove_all_feeds'); socketIO.emit('remove_all_feeds');
if (isBlocking()) { if (isBlocking()) {
console.log('Aborting process due to blocking file append'); console.log('Aborting process due to blocking file append');
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment