From 4a0fa8864781728a76c8499a656917c302a8799f Mon Sep 17 00:00:00 2001 From: ChrisChrome Date: Wed, 18 Feb 2026 13:39:22 -0700 Subject: [PATCH] Fix logging --- index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.js b/index.js index 7f8c35a..82e4c29 100644 --- a/index.js +++ b/index.js @@ -1031,7 +1031,7 @@ app.get("/api/healthcheck", (req, res) => { }); // logCall function (caller, callee) -const logCall = (caller, callee, srcIp, success, reason) => { +const logCall = (caller, callee, srcIp="none_given", success, reason="none_given") => { pool.getConnection().then(conn => { conn.query('INSERT INTO callLogs (caller, callee, timestamp, srcIp, success, reason) VALUES (?, ?, ?, ?, ?, ?)', [caller, callee, Math.floor(Date.now()), srcIp, success, reason]).catch(err => {