diff options
Diffstat (limited to 'api/routes')
-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 => { |