Skip to content

Commit

Permalink
winston: Simpler workaround for winstonjs/winston-syslog#155
Browse files Browse the repository at this point in the history
  • Loading branch information
bmaupin committed Jan 4, 2022
1 parent 7fde2b7 commit c25d211
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions winston/app.ts
Original file line number Diff line number Diff line change
Expand Up @@ -83,10 +83,8 @@ const testLoggingWithStackTraces = () => {
const main = () => {
testLoggingWithStackTraces();

// Hack to work around https://github.com/winstonjs/winston-syslog/issues/155
setTimeout(() => {
process.exit();
}, 500);
// Work around https://github.com/winstonjs/winston-syslog/issues/155
logger.close();
};

main();

0 comments on commit c25d211

Please sign in to comment.