MCPcopy Index your code
hub / github.com/RustPython/RustPython / _clear_cache

Method _clear_cache

Lib/logging/__init__.py:1447–1457  ·  view source on GitHub ↗

Clear the cache for all loggers in loggerDict Called when level changes are made

(self)

Source from the content-addressed store, hash-verified

1445 c.parent = alogger
1446
1447 def _clear_cache(self):
1448 """
1449 Clear the cache for all loggers in loggerDict
1450 Called when level changes are made
1451 """
1452
1453 with _lock:
1454 for logger in self.loggerDict.values():
1455 if isinstance(logger, Logger):
1456 logger._cache.clear()
1457 self.root._cache.clear()
1458
1459#---------------------------------------------------------------------------
1460# Logger classes and functions

Callers 3

setLevelMethod · 0.80
disableFunction · 0.80

Calls 3

isinstanceFunction · 0.85
valuesMethod · 0.45
clearMethod · 0.45

Tested by 1