(msg)
| 53 | } |
| 54 | |
| 55 | function log(msg) { |
| 56 | const line = `[${new Date().toISOString()}] ${msg}`; |
| 57 | console.log(line); |
| 58 | try { fs.appendFileSync(LOG_PATH, line + '\n'); } catch { /* ignore */ } |
| 59 | } |
| 60 | |
| 61 | function readDaemon() { |
| 62 | if (!fs.existsSync(DAEMON_PATH)) return null; |
no outgoing calls
no test coverage detected