From 11cd4029ee6e1e5368be22742827dba1547cfc71 Mon Sep 17 00:00:00 2001 From: kaotisk Date: Fri, 1 Mar 2024 02:21:29 +0200 Subject: Added debug --- api/routes/getNodeInfo/index.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'api/routes/getNodeInfo') diff --git a/api/routes/getNodeInfo/index.js b/api/routes/getNodeInfo/index.js index 34426e5..b0a91cd 100644 --- a/api/routes/getNodeInfo/index.js +++ b/api/routes/getNodeInfo/index.js @@ -1,5 +1,5 @@ const { spawn } = require('child_process'); - +const akLogThis = require('../../lib/akLogThis'); /* * Gets the local latest zblock * @@ -9,6 +9,7 @@ const { spawn } = require('child_process'); * */ module.exports = (req, res) => { + akLogThis('INFO', `Incoming from [${req.socket._peername.address}]:${req.socket._peername.port} @ ${req.get('host')}${req._parsedOriginalUrl.pathname}`); const command = spawn("ak-config", ["get-published"]); var buffer = ""; command.stdout.on("data", data => { -- cgit v1.2.3