The pm2 daemon restarts the application from time to time. How to check for errors in execution?

the pm2 daemon is found to restart the application several times after it has been executed for a period of time. How can I check which part has gone wrong?

I tried to log error, but didn"t seem to log any errors:

{
  "apps" : [{
    "name"        : "name",
    "script"      : "start.js",
    "err_file"    : "./logs/bowser.log",
    "out_file"    : "./logs/bowser.log"
  }]
}
Mar.21,2021

I found the answer by myself. I started listening watch: true and update log

in the startup file.

in this case, either cancel snooping or exclude log log snooping

Menu