Add better logging/Other stuff #3

Merged
ChrisChrome merged 6 commits from dev into main 2026-02-18 13:46:00 -07:00
Showing only changes of commit 4a0fa88647 - Show all commits

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