Skip to content

Commit ce0c3bb

Browse files
committed
Fix crash on connection timeout
The update to TSR 4eed5ee seems to have changed the behaviour when a timeout occurs so that some sort of exception occurs. Winston in playout gateway sees this exception and exits. This configures Winston to not exit in those circumstances.
1 parent 4eed5ee commit ce0c3bb

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

packages/playout-gateway/src/index.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ if (logPath) {
4444
})
4545

4646
logger = Winston.createLogger({
47+
exitOnError: false,
4748
transports: [transportConsole, transportFile],
4849
})
4950
logger.info('Logging to', logPath)
@@ -67,6 +68,7 @@ if (logPath) {
6768
})
6869

6970
logger = Winston.createLogger({
71+
exitOnError: false,
7072
transports: [transportConsole],
7173
})
7274
logger.info('Logging to Console')

0 commit comments

Comments
 (0)