Display process id on server launch.

This commit is contained in:
voussoir 2021-01-08 13:38:54 -08:00
parent 7527b3678f
commit ae436a7079

View file

@ -14,6 +14,7 @@ logging.getLogger().addHandler(handler)
import argparse import argparse
import gevent.pywsgi import gevent.pywsgi
import os
import sys import sys
from voussoirkit import pathclass from voussoirkit import pathclass
@ -56,7 +57,7 @@ def etiquette_flask_launch(
backend.common.init_photodb(create=create, log_level=LOG_LEVEL) 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: if use_https:
message += ' (https)' message += ' (https)'
print(message) print(message)