记录日志并收集到全局变量
(msg, icon="🚀")
| 21 | DEPLOY_START_TIME = 0 |
| 22 | |
| 23 | def log(msg, icon="🚀"): |
| 24 | """记录日志并收集到全局变量""" |
| 25 | log_entry = f"[{datetime.datetime.now().strftime('%H:%M:%S')}] {icon} {msg}" |
| 26 | print(log_entry) |
| 27 | DEPLOY_LOGS.append(log_entry) |
| 28 | |
| 29 | def print_separator(): |
| 30 | """打印分割线""" |
no test coverage detected