Add diagnostic logging to daemon startup

This commit is contained in:
Mohamed Boudra
2026-04-28 21:49:35 +07:00
parent 2f5f974a0e
commit f19007cd83
2 changed files with 13 additions and 2 deletions
@@ -1,5 +1,9 @@
import { pathToFileURL } from "node:url";
process.stderr.write(
`[paseo-runner] argv=${JSON.stringify(process.argv)} run-as-node=${process.env.ELECTRON_RUN_AS_NODE ?? "<unset>"} execPath=${process.execPath}\n`,
);
export async function main(): Promise<void> {
const [argvMode, entryPath, ...args] = process.argv.slice(2);
if (argvMode !== "bare" && argvMode !== "node-script") {