Don't log entire JSON payloads
This commit is contained in:
parent
0402de7444
commit
27da2bb108
|
@ -5,7 +5,6 @@ const { isString, isObject, truncate } = require('lodash');
|
||||||
const https = require('https');
|
const https = require('https');
|
||||||
const httpSignature = require('http-signature');
|
const httpSignature = require('http-signature');
|
||||||
const crypto = require('crypto');
|
const crypto = require('crypto');
|
||||||
const Log = require('./logger').log;
|
|
||||||
|
|
||||||
exports.getJson = getJson;
|
exports.getJson = getJson;
|
||||||
exports.postJson = postJson;
|
exports.postJson = postJson;
|
||||||
|
@ -29,7 +28,6 @@ function getJson(url, options, cb) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
Log.debug({ url: url, body: body }, 'Response from getJson');
|
|
||||||
let parsed;
|
let parsed;
|
||||||
try {
|
try {
|
||||||
parsed = JSON.parse(body);
|
parsed = JSON.parse(body);
|
||||||
|
|
Loading…
Reference in New Issue