mirror of
https://github.com/galaxyproject/galaxy.git
synced 2026-09-24 16:30:27 +08:00
Merge pull request #15468 from davelopez/highlight_serving_address
Make serving address more visible in console
This commit is contained in:
@@ -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))
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user