...
|
...
|
@@ -68,7 +68,7 @@ class Api extends Context { |
|
|
}).catch(err => {
|
|
|
if (err.statusCode) {
|
|
|
logger.error(`api call ${err.statusCode} [${err.options.method}]
|
|
|
${err.options.url} ${err.response.body || ''}`);
|
|
|
${err.options.url} ${options.qs || options.body || options.formData} ${err.response.body || ''}`);
|
|
|
} else {
|
|
|
logger.error(`api call [${options.method || 'get'}] ${options.url}
|
|
|
${JSON.stringify(options.qs || options.body)} ${err}`);
|
...
|
...
|
|