MCPcopy Create free account
hub / github.com/caseywebdev/react-list / disableLogs

Function disableLogs

docs/index.js:747–773  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

745 }
746 function disabledLog() {}
747 function disableLogs() {
748 if (0 === disabledDepth) {
749 prevLog = console.log;
750 prevInfo = console.info;
751 prevWarn = console.warn;
752 prevError = console.error;
753 prevGroup = console.group;
754 prevGroupCollapsed = console.groupCollapsed;
755 prevGroupEnd = console.groupEnd;
756 var props = {
757 configurable: !0,
758 enumerable: !0,
759 value: disabledLog,
760 writable: !0
761 };
762 Object.defineProperties(console, {
763 info: props,
764 log: props,
765 warn: props,
766 error: props,
767 group: props,
768 groupCollapsed: props,
769 groupEnd: props
770 });
771 }
772 disabledDepth++;
773 }
774 function reenableLogs() {
775 disabledDepth--;
776 if (0 === disabledDepth) {

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…