From 25cabe789a20e39e666dc56348cb32d0d1714dbd Mon Sep 17 00:00:00 2001 From: kaotisk Date: Sun, 31 Mar 2024 13:54:51 +0300 Subject: yeap, broke api for starters --- api/routes/getNodeInfo/index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'api/routes/getNodeInfo') diff --git a/api/routes/getNodeInfo/index.js b/api/routes/getNodeInfo/index.js index b0a91cd..bd2c733 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'); +const akLogMessage = require('../../lib/akLogMessage'); /* * Gets the local latest zblock * @@ -9,7 +9,7 @@ const akLogThis = require('../../lib/akLogThis'); * */ module.exports = (req, res) => { - akLogThis('INFO', `Incoming from [${req.socket._peername.address}]:${req.socket._peername.port} @ ${req.get('host')}${req._parsedOriginalUrl.pathname}`); + akLogMessage('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