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

Method doRollover

fastdeploy/utils.py:292–306  ·  view source on GitHub ↗

scroll log

(self)

Source from the content-addressed store, hash-verified

290 return False
291
292 def doRollover(self):
293 """
294 scroll log
295 """
296 if self.stream:
297 self.stream.close()
298 self.stream = None
299
300 self.current_filename = self._compute_fn()
301 self.current_log_path = self.base_log_path.with_name(self.current_filename)
302
303 if not self.delay:
304 self.stream = self._open()
305
306 self.delete_expired_files()
307
308 def _compute_fn(self):
309 """

Callers 1

test_daily_rotationMethod · 0.95

Calls 4

_compute_fnMethod · 0.95
_openMethod · 0.95
delete_expired_filesMethod · 0.95
closeMethod · 0.45

Tested by 1

test_daily_rotationMethod · 0.76