Skip to content

Commit dcdcd0a

Browse files
authored
report PID
helpful for finding process in a os system monitor
1 parent e165aff commit dcdcd0a

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

yaqd-core/yaqd_core/_is_daemon.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
import time
1414
from typing import Dict, List, Optional, Any
1515
from abc import ABC
16+
from os import getpid
1617

1718
import platformdirs # type: ignore
1819
import tomli
@@ -210,6 +211,7 @@ def main(cls):
210211
@classmethod
211212
async def _main(cls, config_filepath, config_file, args=None):
212213
"""Parse command line arguments, start event loop tasks."""
214+
logger.info(f"PID: {getpid()}")
213215
loop = asyncio.get_running_loop()
214216
cls.__servers = []
215217
for section in config_file:

0 commit comments

Comments
 (0)