Fix logging

This commit is contained in:
Christopher Cookman 2026-02-18 13:39:22 -07:00
parent e5880a9e49
commit 4a0fa88647

View file

@ -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 => {