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 argparse
|
||||||
import gevent.pywsgi
|
import gevent.pywsgi
|
||||||
|
import os
|
||||||
import sys
|
import sys
|
||||||
|
|
||||||
from voussoirkit import pathclass
|
from voussoirkit import pathclass
|
||||||
|
@ -67,7 +68,7 @@ def ycdl_flask_launch(
|
||||||
if refresh_rate is not None:
|
if refresh_rate is not None:
|
||||||
backend.common.start_refresher_thread(refresh_rate)
|
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:
|
if use_https:
|
||||||
message += ' (https)'
|
message += ' (https)'
|
||||||
print(message)
|
print(message)
|
||||||
|
|
Loading…
Reference in a new issue