MCPcopy Create free account
hub / github.com/aaPanel/BaoTa / log

Function log

mod/project/git/scripts/deploy.py:23–27  ·  view source on GitHub ↗

记录日志并收集到全局变量

(msg, icon="🚀")

Source from the content-addressed store, hash-verified

21DEPLOY_START_TIME = 0
22
23def 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
29def print_separator():
30 """打印分割线"""

Callers 11

run_cmdFunction · 0.70
get_site_infoFunction · 0.70
display_git_infoFunction · 0.70
execute_deploy_scriptFunction · 0.70
auto_deployFunction · 0.70
manual_branch_deployFunction · 0.70
manual_rollback_deployFunction · 0.70
save_deploy_logFunction · 0.70
prepare_deploymentFunction · 0.70
execute_deploymentFunction · 0.70
deploy.pyFile · 0.70

Calls 2

nowMethod · 0.80
appendMethod · 0.45

Tested by

no test coverage detected