app.get("/logs", (req, res) => { try { const logs = fs.readFileSync("/paperclip/bootstrap_logs.txt", "utf-8"); res.status(200).set("Content-Type", "text/plain").send(logs); } catch (e) { res.status(200).set("Content-Type", "text/plain").send("Logs not available yet or bootstrap hasn't run. Please refresh in a few seconds.\n\nError: " + String(e)); } });