Show more of the response in the journal.
This commit is contained in:
parent
e87c0ecc62
commit
cc7726758b
2
index.js
2
index.js
@ -34,7 +34,7 @@ Postgres.FirstRow = function(sql, response) {
|
|||||||
console.log(`${timestamp()} Running query:\n${sql}`);
|
console.log(`${timestamp()} Running query:\n${sql}`);
|
||||||
Postgres.query(sql, [], (err, res) => {
|
Postgres.query(sql, [], (err, res) => {
|
||||||
if (err === null) {
|
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]);
|
response.json(res.rows[0]);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user