Show pid when server starts.
This commit is contained in:
parent
5bedabdc66
commit
acf29b9e9f
1 changed files with 2 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue