dist/hawtio-utilities.js
function defaultJolokiaErrorHandler(response, options) {
        if (options === void 0) { options = {}; }
        var operation = Core.pathGet(response, ['request', 'operation']) || "unknown";
        var silent = options['silent'];
        var stacktrace = response.stacktrace;
        if (silent || isIgnorableException(response)) {
            log.debug("Operation", operation, "failed due to:", response['error']);
        }
        else {
            log.warn("Operation", operation, "failed due to:", response['error']);
        }
    }
function defaultJolokiaErrorHandler(response, options) {
        if (options === void 0) { options = {}; }
        var operation = Core.pathGet(response, ['request', 'operation']) || "unknown";
        var silent = options['silent'];
        var stacktrace = response.stacktrace;
        if (silent || isIgnorableException(response)) {
            log.debug("Operation", operation, "failed due to:", response['error']);
        }
        else {
            log.warn("Operation", operation, "failed due to:", response['error']);
        }
    }
function defaultJolokiaErrorHandler ( response , options ) { if ( options === void 0 ) { options = { } ; } var operation = Core . pathGet ( response , [ 'request' , 'operation' ] ) || "unknown" ; var silent = options [ 'silent' ] ; var stacktrace = response . stacktrace ; if ( silent || isIgnorableException ( response ) ) { log . debug ( "Operation" , operation , "failed due to:" , response [ 'error' ] ) ; } else { log . warn ( "Operation" , operation , "failed due to:" , response [ 'error' ] ) ; } }
The default error handler which logs errors either using debug or log level logging based on the silent setting
@param response the response from a jolokia request
The default error handler which logs errors either using debug or log level logging based on the silent setting