fix: avoid duplicate container stdout logging

This commit is contained in:
whyour
2026-08-16 17:03:15 +08:00
parent 276dfc2382
commit 02e02491c4
3 changed files with 36 additions and 5 deletions
+3 -3
View File
@@ -13,10 +13,10 @@ function loadConfig(containerValue) {
return require(configPath).apps[0];
}
test('container logging goes to the container standard streams', () => {
test('container logging relies on pm2-runtime stdout without persistent copies', () => {
const app = loadConfig('true');
assert.equal(app.out_file, '/proc/1/fd/1');
assert.equal(app.error_file, '/proc/1/fd/2');
assert.equal(app.out_file, '/dev/null');
assert.equal(app.error_file, '/dev/null');
assert.equal(app.time, false);
});