How to use the beaver-logger/client.warn function in beaver-logger

To help you get started, we’ve selected a few beaver-logger examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github paypal / paypal-checkout-components / src / hacks.js View on Github external
patchMethod(Checkout, 'renderTo', ({ callOriginal, args: [ , props ] }) => {

    if (debounce) {
        warn('button_mutliple_click_debounce');
        return new ZalgoPromise(noop);
    }

    debounce = true;

    for (const methodName of [ 'onAuthorize', 'onCancel', 'onError', 'onClose' ]) {
        const original = props[methodName];
        props[methodName] = function unDebounce() : mixed {
            debounce = false;
            if (original) {
                return original.apply(this, arguments);
            }
        };
    }

    return callOriginal();
github krakenjs / zoid / src / component / component / index.js View on Github external
logWarning(event, payload) {
        $logger.warn(`xc_${this.name}_${event}`, payload);
    }