MCPcopy Create free account
hub / github.com/PaddlePaddle/FastDeploy / shouldRollover

Method shouldRollover

fastdeploy/utils.py:284–290  ·  view source on GitHub ↗

check scroll through the log

(self, record)

Source from the content-addressed store, hash-verified

282 BaseRotatingHandler.__init__(self, filename, "a", encoding, delay)
283
284 def shouldRollover(self, record):
285 """
286 check scroll through the log
287 """
288 if self.current_filename != self._compute_fn():
289 return True
290 return False
291
292 def doRollover(self):
293 """

Callers 1

test_daily_rotationMethod · 0.95

Calls 1

_compute_fnMethod · 0.95

Tested by 1

test_daily_rotationMethod · 0.76