diff options
author | kaotisk <kaotisk@arching-kaos.org> | 2024-03-01 02:21:29 +0200 |
---|---|---|
committer | kaotisk <kaotisk@arching-kaos.org> | 2024-03-01 02:21:29 +0200 |
commit | 11cd4029ee6e1e5368be22742827dba1547cfc71 (patch) | |
tree | adde3d3e21491b3c0bac70ef98ebe0a78b8d06b3 /api/routes/getNodeInfo/index.js | |
parent | de65283475653e33de0b6be28f08b9d5004e9080 (diff) | |
download | arching-kaos-tools-11cd4029ee6e1e5368be22742827dba1547cfc71.tar.gz arching-kaos-tools-11cd4029ee6e1e5368be22742827dba1547cfc71.tar.bz2 arching-kaos-tools-11cd4029ee6e1e5368be22742827dba1547cfc71.zip |
Added debug
Diffstat (limited to 'api/routes/getNodeInfo/index.js')
-rw-r--r-- | api/routes/getNodeInfo/index.js | 3 |
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 => { |