Merge pull request #15468 from davelopez/highlight_serving_address

Make serving address more visible in console
This commit is contained in:
Dannon
2023-02-02 07:07:44 -05:00
committed by GitHub
+2 -1
View File
@@ -229,7 +229,8 @@ class GunicornApplicationStack(ApplicationStack):
def log_startup(self):
msg = [f"Galaxy server instance '{self.config.server_name}' is running"]
if "GUNICORN_LISTENERS" in os.environ:
msg.append(f'serving on {os.environ["GUNICORN_LISTENERS"]}')
message = f'\nServing on {os.environ["GUNICORN_LISTENERS"]}\n'
msg.append(f"\033[92m{message}\033[0m") # Highlight in green
log.info("\n".join(msg))