From cc7726758b4aa058896bdf6b9e362a54e18afe55 Mon Sep 17 00:00:00 2001 From: PhilRunninger Date: Wed, 13 Mar 2024 08:45:21 -0400 Subject: [PATCH] Show more of the response in the journal. --- index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.js b/index.js index 218ac96..f281787 100644 --- a/index.js +++ b/index.js @@ -34,7 +34,7 @@ Postgres.FirstRow = function(sql, response) { console.log(`${timestamp()} Running query:\n${sql}`); Postgres.query(sql, [], (err, res) => { if (err === null) { - console.log(`${timestamp()} Reponse: ${JSON.stringify(res.rows[0]).slice(0,100)}${JSON.stringify(res.rows[0]).length<100?'':'… (truncated)'}`); + console.log(`${timestamp()} Reponse: ${JSON.stringify(res.rows[0]).slice(0,5000)}${JSON.stringify(res.rows[0]).length<5000?'':'… (truncated)'}`); response.json(res.rows[0]); return; }