Skip to content

Commit 9478980

Browse files
committed
Added banner
1 parent 34b3695 commit 9478980

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

services/web/server/src/simcore_service_webserver/application.py

+6
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99

1010
from servicelib.application import create_safe_application
1111

12+
from ._meta import WELCOME_MSG
1213
from .activity import setup_activity
1314
from .catalog import setup_catalog
1415
from .computation import setup_computation
@@ -85,6 +86,11 @@ def run_service(config: dict):
8586

8687
app = create_application(config)
8788

89+
async def welcome_banner(_app: web.Application):
90+
print(WELCOME_MSG, flush=True)
91+
92+
app.on_startup.append(welcome_banner)
93+
8894
web.run_app(app, host=config["main"]["host"], port=config["main"]["port"])
8995

9096

0 commit comments

Comments
 (0)