Print the given string only if logging is enabled.
(*args, block=False, **kwargs)
| 57 | |
| 58 | |
| 59 | def 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 | |
| 69 | def flush_results(save_path, results): |