MCPcopy Create free account
hub / github.com/MaterializeInc/materialize / log_in_automation

Function log_in_automation

misc/python/materialize/ui.py:133–138  ·  view source on GitHub ↗

Log to a file, if we're running in automation

(msg: str)

Source from the content-addressed store, hash-verified

131
132
133def log_in_automation(msg: str) -> None:
134 """Log to a file, if we're running in automation"""
135 if env_is_truthy("MZ_IN_AUTOMATION"):
136 with open("/tmp/mzcompose.log", "a") as fh:
137 now = datetime.datetime.now().isoformat()
138 print(f"[{now}] {msg}", file=fh)
139
140
141def shell_quote(args: Iterable[Any]) -> str:

Callers

nothing calls this directly

Calls 2

env_is_truthyFunction · 0.85
nowMethod · 0.45

Tested by

no test coverage detected