From ae436a707906b09df74b6cdccfd9a66a62693eb7 Mon Sep 17 00:00:00 2001 From: Ethan Dalool Date: Fri, 8 Jan 2021 13:38:54 -0800 Subject: [PATCH] Display process id on server launch. --- frontends/etiquette_flask/etiquette_flask_dev.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/frontends/etiquette_flask/etiquette_flask_dev.py b/frontends/etiquette_flask/etiquette_flask_dev.py index dec8a9e..ba20023 100644 --- a/frontends/etiquette_flask/etiquette_flask_dev.py +++ b/frontends/etiquette_flask/etiquette_flask_dev.py @@ -14,6 +14,7 @@ logging.getLogger().addHandler(handler) import argparse import gevent.pywsgi +import os import sys from voussoirkit import pathclass @@ -56,7 +57,7 @@ def etiquette_flask_launch( backend.common.init_photodb(create=create, log_level=LOG_LEVEL) - message = f'Starting server on port {port}' + message = f'Starting server on port {port}, pid={os.getpid()}' if use_https: message += ' (https)' print(message)