MCPcopy
hub / github.com/SqueezeAILab/LLMCompiler / log

Function log

src/utils/logger_utils.py:59–66  ·  view source on GitHub ↗

Print the given string only if logging is enabled.

(*args, block=False, **kwargs)

Source from the content-addressed store, hash-verified

57
58
59def log(*args, block=False, **kwargs):
60 """Print the given string only if logging is enabled."""
61 if LOG_ENABLED:
62 if block:
63 print("=" * 80)
64 print(*args, **kwargs)
65 if block:
66 print("=" * 80)
67
68
69def flush_results(save_path, results):

Callers 5

run_llmMethod · 0.90
__init__Method · 0.90
joinMethod · 0.90
_acallMethod · 0.90
__call__Method · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected