diff --git a/config/gunicorn.conf.py b/config/gunicorn.conf.py index fcd4568..602ffec 100644 --- a/config/gunicorn.conf.py +++ b/config/gunicorn.conf.py @@ -82,9 +82,16 @@ def on_reload(server): def when_ready(server): commit_hash = get_git_commit() - print(f"{banner.generate("studspider v0.3.0")} - {commit_hash}") + banner_text = banner.generate("studspider v0.3.0") + + # Add commit hash to the last line of banner + banner_lines = banner_text.rstrip("\n").split("\n") + if banner_lines: + banner_lines[-1] += f" {commit_hash}" + + print("\n".join(banner_lines)) print("Built for PLAY-WELL TEKNOLOGIES by contact@studspider.sh\n\n") - print(f"BOOTING ON:\t{bind}") + print(f"HOST:\t{bind}") print(f"WORKERS:\t{workers}") print(f"WORKER TYPE:\t{worker_class}") print(f"{'=' * 60}\n")