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 {
}
}
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;
}
......
......@@ -3,7 +3,7 @@ import { isBlocking } from '../io-interface/handlers/output-handlers';
import { room } from '../janus/janus-room';
const asyncExitHandler = async (reason: number | string | Error) => {
console.log('Async exit handler');
console.log(`Async exit handler with exit reason ${reason}`);
try {
await room.cleaup();
} catch (err) {
......@@ -13,8 +13,8 @@ const asyncExitHandler = async (reason: number | string | Error) => {
process.exit(isNaN(+reason) ? 1 : +reason);
};
const syncExitHandler = () => {
console.log('Sync exit handler');
const syncExitHandler = (code: number | string) => {
console.log(`Sync exit handler with code ${code}`);
socketIO.emit('remove_all_feeds');
if (isBlocking()) {
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