sparc-commons
Advanced tools
Comparing version 0.2.27 to 0.2.28
@@ -109,6 +109,11 @@ /*jshint multistr: true */ | ||
if(logStrategy === 'ALWAYS'){ | ||
log.info(`Got response ${JSON.stringify(_.get(resp, 'body'), null, 2)}`) | ||
log.info(`REQUEST: ${JSON.stringify(data, null, 2)}`) | ||
log.info(`RESPONSE: ${JSON.stringify(_.get(resp, 'body'), null, 2)}`) | ||
} | ||
res(resp.body); | ||
} else { | ||
if(_.contains(['ALWAYS', 'ON_ERROR'], logStrategy)){ | ||
log.error(`REQUEST: ${JSON.stringify(data, null, 2)}`) | ||
} | ||
if(logStrategy !== 'NEVER'){ | ||
@@ -115,0 +120,0 @@ log.error(_.get(resp, 'body')) |
{ | ||
"name": "sparc-commons", | ||
"version": "0.2.27", | ||
"version": "0.2.28", | ||
"description": "Library with all small time common stuff used across the SPARC echosystem", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
51224
1251