exports.disabledLog=disabledLog exports.disableLogs=function()if _G.__DEV__ then if disabledDepth==0 then prevLog=console.log prevInfo=console.info prevWarn=console.warn prevError=console.error prevGroup=console.group prevGroupCollapsed=console.groupCollapsed prevGroupEnd=console.groupEnd console.info=disabledLog console.log=disabledLog console.warn=disabledLog console.error=disabledLog console.group=disabledLog console.groupCollapsed=disabledLog console.groupEnd=disabledLog end disabledDepth=disabledDepth+1 end end exports.reenableLogs=function()if _G.__DEV__ then disabledDepth=disabledDepth-1 if disabledDepth==0 then console.log=prevLog console.info=prevInfo console.warn=prevWarn console.error=prevError console.group=prevGroup console.groupCollapsed=prevGroupCollapsed console.groupEnd=prevGroupEnd end if disabledDepth<0 then console.error("\100\105\115\097\098\108\101\100\068\101\112\116\104 \102\101\108\108 \098\101\108\111\119 \122\101\114\111\046 \084\104\105\115 \105\115 \097 \098\117\103 \105\110 \082\101\097\099\116\046 \080\108\101\097\115\101 \102\105\108\101 \097\110 \105\115\115\117\101\046")end end end return exports

exports.disabledLog = disabledLog

exports.disableLogs = function()
	if _G.__DEV__ then
		if disabledDepth == 0 then
			prevLog = console.log
			prevInfo = console.info
			prevWarn = console.warn
			prevError = console.error
			prevGroup = console.group
			prevGroupCollapsed = console.groupCollapsed
			prevGroupEnd = console.groupEnd

			console.info = disabledLog
			console.log = disabledLog
			console.warn = disabledLog
			console.error = disabledLog
			console.group = disabledLog
			console.groupCollapsed = disabledLog
			console.groupEnd = disabledLog
		end

		disabledDepth = disabledDepth + 1
	end
end

exports.reenableLogs = function()
	if _G.__DEV__ then
		disabledDepth = disabledDepth - 1

		if disabledDepth == 0 then
			console.log = prevLog
			console.info = prevInfo
			console.warn = prevWarn
			console.error = prevError
			console.group = prevGroup
			console.groupCollapsed = prevGroupCollapsed
			console.groupEnd = prevGroupEnd
		end

		if disabledDepth < 0 then
			console.error(
				"disabledDepth fell below zero. "
					.. "This is a bug in React. Please file an issue."
			)
		end
	end
end

return exports
