Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Doesn't work with pm2-beta #193

Open
T1MOXA opened this issue Jan 6, 2025 · 0 comments
Open

Doesn't work with pm2-beta #193

T1MOXA opened this issue Jan 6, 2025 · 0 comments

Comments

@T1MOXA
Copy link

T1MOXA commented Jan 6, 2025

38 | var WORKER_INTERVAL = isNaN(parseInt(conf.workerInterval)) ? 30 * 1000 :
39 |   parseInt(conf.workerInterval) * 1000; // default: 30 secs
40 | var SIZE_LIMIT = get_limit_size(); // default : 10MB
41 | var ROTATE_CRON = conf.rotateInterval || "0 0 * * *"; // default : every day at midnight
42 | var RETAIN = isNaN(parseInt(conf.retain)) ? undefined : parseInt(conf.retain); // All
43 | var COMPRESSION = JSON.parse(conf.compress) || false; // Do not compress by default
                            ^
SyntaxError: JSON Parse error: Unexpected identifier "undefined"
      at /root/.pm2/modules/pm2-logrotate-ext/node_modules/pm2-logrotate-ext/app.js:43:24
      at /root/.bun/install/global/node_modules/require-in-the-middle/index.js:101:39
      at /root/.bun/install/global/node_modules/pm2-beta/lib/ProcessContainerForkBun.js:27:1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant