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

Function clear_logs

tests/model_loader/utils.py:31–40  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

29
30
31def clear_logs():
32 log_path = os.path.join(os.getcwd(), "log")
33 if os.path.exists(log_path):
34 try:
35 shutil.rmtree(log_path)
36 print(f"Deleted log directory: {log_path}")
37 except Exception as e:
38 print(f"Failed to delete log directory {log_path}: {e}")
39 else:
40 print(f"No log directory found at {log_path}")
41
42
43def print_logs():

Callers 1

run_with_timeoutFunction · 0.85

Calls 3

printFunction · 0.85
joinMethod · 0.80
existsMethod · 0.45

Tested by

no test coverage detected