Some users seem to use the same mapped folder for both logs and config files, making "watch the /config folder for changes" the same as "watch the /log folder for changes", causing every log event to endlessly reboot the bot.
Rather than explicitly ignoring every single possible log file (the regex patterns promised by the PM2 documentation don't actually work, looking at the source code), we'll only specifically watch for changes to the /config/config.yaml file.
Some users seem to use the same mapped folder for both logs and config files, making "watch the
/config
folder for changes" the same as "watch the/log
folder for changes", causing every log event to endlessly reboot the bot.Rather than explicitly ignoring every single possible log file (the regex patterns promised by the PM2 documentation don't actually work, looking at the source code), we'll only specifically watch for changes to the
/config/config.yaml
file.