(entries: list[dict[str, Any]], include_stacktrace: bool)
| 150 | |
| 151 | |
| 152 | def _print_console_entries(entries: list[dict[str, Any]], include_stacktrace: bool) -> None: |
| 153 | for entry in entries: |
| 154 | print_line(f"{entry.get('timestamp', '')} {entry.get('type', 'log')} {entry.get('message', '')}") |
| 155 | if include_stacktrace and entry.get("stackTrace"): |
| 156 | for st_line in entry["stackTrace"].split("\n"): |
| 157 | print_line(f" {st_line}") |
| 158 | |
| 159 | |
| 160 | @console_app.command("clear") |
no test coverage detected