chore(plugin): log current comfy deploy revision out

This commit is contained in:
BennyKok 2023-12-28 23:56:52 +08:00
parent 61894c0b46
commit 7ab0674d8a

View File

@ -46,3 +46,9 @@ class StreamToLogger():
# Redirect stdout and stderr to the logger
sys.stdout = StreamToLogger(logging.INFO)
sys.stderr = StreamToLogger(logging.ERROR)
try:
current_git_commit = subprocess.check_output(['git', 'rev-parse', 'HEAD']).decode('utf-8').strip()
print(f"** Comfy Deploy Revision: {current_git_commit}")
except Exception as e:
print(f"** Comfy Deploy failed to get current git commit: {str(e)}")