diff --git a/src/lib/request/request.ts b/src/lib/request/request.ts index 4847a1cd31..0b51c14e1a 100644 --- a/src/lib/request/request.ts +++ b/src/lib/request/request.ts @@ -83,7 +83,11 @@ export = function makeRequest( payload.timeout = config.timeout * 1000; // s -> ms } - debug('request payload: ', JSON.stringify(payload)); + try { + debug('request payload: ', JSON.stringify(payload)); + } catch (e) { + debug('request payload is too big to log', e); + } const method = ( payload.method || 'get'