Show pid when server starts.

master
voussoir 2021-01-28 16:47:52 -08:00
parent 5bedabdc66
commit acf29b9e9f
No known key found for this signature in database
GPG Key ID: 5F7554F8C26DACCB
1 changed files with 2 additions and 1 deletions

View File

@ -14,6 +14,7 @@ logging.getLogger().addHandler(handler)
import argparse
import gevent.pywsgi
import os
import sys
from voussoirkit import pathclass
@ -67,7 +68,7 @@ def ycdl_flask_launch(
if refresh_rate is not None:
backend.common.start_refresher_thread(refresh_rate)
message = f'Starting server on port {port}'
message = f'Starting server on port {port}, pid={os.getpid()}'
if use_https:
message += ' (https)'
print(message)