From d20cd4b058da3328fc13eb034f6d012a3351a812 Mon Sep 17 00:00:00 2001 From: Fabio Manganiello Date: Fri, 24 May 2024 22:57:50 +0200 Subject: [PATCH] Added a nice ASCII-art logo at application startup. --- platypush/app/_app.py | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/platypush/app/_app.py b/platypush/app/_app.py index aa79f4b48..8c8bd01af 100644 --- a/platypush/app/_app.py +++ b/platypush/app/_app.py @@ -5,6 +5,7 @@ import os import signal import subprocess import sys +from textwrap import dedent from typing import Optional, Sequence from platypush.bus import Bus @@ -420,7 +421,21 @@ class Application: if not self.no_capture_stderr: sys.stderr = Logger(log.warning) - log.info('---- Starting platypush v.%s', __version__) + log.info( + dedent( + r''' + _____ _ _ _ + | __ \| | | | | | + | |__) | | __ _| |_ _ _ _ __ _ _ ___| |__ + | ___/| |/ _` | __| | | | '_ \| | | / __| '_ \ + | | | | (_| | |_| |_| | |_) | |_| \__ \ | | | + |_| |_|\__,_|\__|\__, | .__/ \__,_|___/_| |_| + __/ | | + |___/|_| + ''' + ) + ) + log.info('---- Starting Platypush v.%s', __version__) # Start the local Redis service if required if self.start_redis: