plugins/polling-updater.js
function logError(log, err) {
    let debug = log.debug || log.trace || log.log;
    if (err.Fault) {
        log.error(err.Fault);
        if (err.response && err.response.request) {
            log.error("URL: " + err.response.request.href);
        }
        if (err.body) debug(err.body);
    } else {
        log.error(err.stack ? err.stack : err);
    }
}
function logError(log, err) {
    let debug = log.debug || log.trace || log.log;
    if (err.Fault) {
        log.error(err.Fault);
        if (err.response && err.response.request) {
            log.error("URL: " + err.response.request.href);
        }
        if (err.body) debug(err.body);
    } else {
        log.error(err.stack ? err.stack : err);
    }
}
function logError ( log , err ) { let debug = log . debug || log . trace || log . log ; if ( err . Fault ) { log . error ( err . Fault ) ; if ( err . response && err . response . request ) { log . error ( "URL: " + err . response . request . href ) ; } if ( err . body ) debug ( err . body ) ; } else { log . error ( err . stack ? err . stack : err ) ; } }
Logs the given error to the given log facility.

@private
Logs the given error to the given log facility .