← back to Cncp Failure Collector
docs: fix misleading comment + variable name (no journalctl; signal not controller)
b843af5d602cb2bbae39553eb4b1b330bede510f · 2026-05-18 20:14:05 -0700 · SteveStudio2
Files touched
M canary-shopify-prices.jsM index.js
Diff
commit b843af5d602cb2bbae39553eb4b1b330bede510f
Author: SteveStudio2 <steve@designerwallcoverings.com>
Date: Mon May 18 20:14:05 2026 -0700
docs: fix misleading comment + variable name (no journalctl; signal not controller)
---
canary-shopify-prices.js | 4 ++--
index.js | 3 ++-
2 files changed, 4 insertions(+), 3 deletions(-)
diff --git a/canary-shopify-prices.js b/canary-shopify-prices.js
index 3796e32..f19770b 100644
--- a/canary-shopify-prices.js
+++ b/canary-shopify-prices.js
@@ -24,8 +24,8 @@ function log(...a) { console.log(new Date().toISOString(), ...a); }
async function throttledFetch(url) {
await sleep(REQ_INTERVAL_MS);
- const ctrl = AbortSignal.timeout(15_000);
- return fetch(url, { headers: { 'User-Agent': UA }, signal: ctrl });
+ const signal = AbortSignal.timeout(15_000);
+ return fetch(url, { headers: { 'User-Agent': UA }, signal });
}
async function getJson(url) {
diff --git a/index.js b/index.js
index 8fa7355..e4ede1d 100644
--- a/index.js
+++ b/index.js
@@ -318,7 +318,8 @@ async function scanLaunchdErrLogs(state) {
}
// ---------------- Linux-only watch paths ----------------
-// On Kamatera / any Linux host: tail nginx error log + journalctl for systemd unit failures.
+// On Kamatera / any Linux host: tail the configured log files (nginx error log,
+// syslog) for new error lines.
// All paths are configurable via env so Steve can swap them out per host without code edits.
const LINUX_LOG_PATHS = (process.env.LINUX_LOG_PATHS || '/var/log/nginx/error.log,/var/log/syslog')
.split(',').map(s => s.trim()).filter(Boolean);
← 81d499d chore: add dist/build/.next to .gitignore
·
back to Cncp Failure Collector
·
fix(collector): bump execSync maxBuffer to prevent pm2 jlist bba7324 →