fix banner
This commit is contained in:
1 parent
bcf625d2b0
commit
bf65965b26
1 file changed
+9
-2
@@ -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")
|
||||
|
||||
Reference in new issue
Block a user