Buckets:

download
raw
506 Bytes
from logging.handlers import BufferingHandler
class FTBufferingHandler(BufferingHandler):
def flush(self):
"""
Override Flush behaviour - we keep half of the configured capacity
otherwise, we have moments with "empty" logs.
"""
self.acquire()
try:
# Keep half of the records in buffer.
records_to_keep = -int(self.capacity / 2)
self.buffer = self.buffer[records_to_keep:]
finally:
self.release()

Xet Storage Details

Size:
506 Bytes
·
Xet hash:
49c0b7cbe53178526f5d26090cb5afe256f2851e34ff43b6b53cf184a35dc9b5

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.