sainsburys-tech / next-logger

JSON logging patcher for Next.js
MIT License
144 stars 14 forks source link

Crashing pm2 cluster #28

Open matejstrasek opened 4 months ago

matejstrasek commented 4 months ago

Using default configuration of next-logger is crashing my pm2 cluster of two instances (there is no logs in the console and machine becomes unhealthy).

When using fork mode all works ok.

Any ideas what could be the issue with next-logger when using cluster mode?

devinrhode2 commented 4 months ago

The only weird thing about next logger is the global flag you need to pass into node. I have an older fork that may not have that issue, but it'd be up to you to dig up that old thread/fork. You could search for PRs created by me and get pretty close.