build/authorify.js
function logResponse(err, res) {
    if (err || (res && !res.ok)) {
      if (err) {
        log.warn('%s on response -> read plaintext body due an error (%s)', app.name, err.message);
      } else {
        log.warn('%s on response -> read plaintext body due an error (%s)', app.name, res.error);
      }
    } else if (res && !_.isEmpty(res.body)) {
      if  (res.body[my.config.encryptedBodyName]) {
        log.info('%s on response -> read encrypted body', app.name);
      } else {
        log.info('%s on response -> read plaintext body', app.name);
      }
    }
  }
function logResponse(err, res) {
    if (err || (res && !res.ok)) {
      if (err) {
        log.warn('%s on response -> read plaintext body due an error (%s)', app.name, err.message);
      } else {
        log.warn('%s on response -> read plaintext body due an error (%s)', app.name, res.error);
      }
    } else if (res && !_.isEmpty(res.body)) {
      if  (res.body[my.config.encryptedBodyName]) {
        log.info('%s on response -> read encrypted body', app.name);
      } else {
        log.info('%s on response -> read plaintext body', app.name);
      }
    }
  }
function logResponse ( err , res ) { if ( err || ( res && ! res . ok ) ) { if ( err ) { log . warn ( '%s on response -> read plaintext body due an error (%s)' , app . name , err . message ) ; } else { log . warn ( '%s on response -> read plaintext body due an error (%s)' , app . name , res . error ) ; } } else if ( res && ! _ . isEmpty ( res . body ) ) { if ( res . body [ my . config . encryptedBodyName ] ) { log . info ( '%s on response -> read encrypted body' , app . name ) ; } else { log . info ( '%s on response -> read plaintext body' , app . name ) ; } } }
Log the response

@param {Object} err The error if occurred
@param {Object} res The response
@private
@ignore
Log the response