Log to a file, if we're running in automation
(msg: str)
| 131 | |
| 132 | |
| 133 | def 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 | |
| 141 | def shell_quote(args: Iterable[Any]) -> str: |
nothing calls this directly
no test coverage detected