aboutsummaryrefslogtreecommitdiff
path: root/api/routes/getNodeInfo
diff options
context:
space:
mode:
authorkaotisk <kaotisk@arching-kaos.org>2024-03-01 02:21:29 +0200
committerkaotisk <kaotisk@arching-kaos.org>2024-03-01 02:21:29 +0200
commit11cd4029ee6e1e5368be22742827dba1547cfc71 (patch)
treeadde3d3e21491b3c0bac70ef98ebe0a78b8d06b3 /api/routes/getNodeInfo
parentde65283475653e33de0b6be28f08b9d5004e9080 (diff)
downloadarching-kaos-tools-11cd4029ee6e1e5368be22742827dba1547cfc71.tar.gz
arching-kaos-tools-11cd4029ee6e1e5368be22742827dba1547cfc71.tar.bz2
arching-kaos-tools-11cd4029ee6e1e5368be22742827dba1547cfc71.zip
Added debug
Diffstat (limited to 'api/routes/getNodeInfo')
-rw-r--r--api/routes/getNodeInfo/index.js3
1 files changed, 2 insertions, 1 deletions
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 => {