Show more of the response in the journal.

This commit is contained in:
PhilRunninger 2024-03-13 08:45:21 -04:00
parent e87c0ecc62
commit cc7726758b

View File

@ -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;
}