Skip to content

Commit

Permalink
update close loge message
Browse files Browse the repository at this point in the history
  • Loading branch information
pwsses committed Sep 11, 2024
1 parent 4e585b5 commit ce543f2
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions lib/watchHelper.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,14 +38,8 @@ module.exports = {
logger.log(`listening on ${socketPort}`);
});

http.on('close', e => {
if (!e.message.includes('Server is not running')) {
logger.log(chalk.cyanBright(`Close listening: ${e.message}`));
}
});

http.on('error', e => {
logger.log(chalk.cyanBright(`Error listening: ${e.message}`));
http.on('close', () => {
logger.log(chalk.cyanBright(`Close listening: ${socketPort}`));
});

mediator = io.on('connection', socket => {
Expand Down

0 comments on commit ce543f2

Please sign in to comment.