Skip to content

Commit f90b699

Browse files
author
David Erb
committed
changes some debug markers to DISSHU
1 parent f8abd15 commit f90b699

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

src/dls_servbase_api/aiohttp_client.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -294,7 +294,7 @@ async def client_shutdown(self):
294294
await self._client_session.get(f"{self.__client_netloc}/shutdown")
295295

296296
logger.debug(
297-
f"[PIDAL] client has requested {callsign(self)} server shutdown"
297+
f"[DISSHU] client has requested {callsign(self)} server shutdown"
298298
)
299299

300300
max_seconds = 5.0
@@ -316,7 +316,7 @@ async def client_shutdown(self):
316316
)
317317

318318
logger.debug(
319-
f"[PIDAL] waiting for {callsign(self)} server shutdown, napping {nap_seconds}"
319+
f"[DISSHU] waiting for {callsign(self)} server shutdown, napping {nap_seconds}"
320320
)
321321

322322
# Small sleep after sending shutdown command lets the server really shut down.

src/dls_servbase_lib/base_aiohttp.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ async def start_process(self):
123123
target=self.prepare_to_activate_process,
124124
)
125125
self.__process2.start()
126-
logger.debug(f"[PIDAL] {callsign(self)} pid {self.__process2.pid} is started")
126+
logger.debug(f"[DISSHU] {callsign(self)} pid {self.__process2.pid} is started")
127127
# TODO: Make maximum wait time for start_process event to be configurable.
128128
timeout = 30.0
129129
naptime = 0.25
@@ -158,7 +158,7 @@ async def is_process_alive(self):
158158

159159
# state = "alive" if is_alive else "dead"
160160

161-
# logger.debug(f"[PIDAL] {callsign(self)} pid {self.__process2.pid} is {state}")
161+
# logger.debug(f"[DISSHU] {callsign(self)} pid {self.__process2.pid} is {state}")
162162

163163
return is_alive
164164

@@ -242,7 +242,7 @@ def activate_process_base(self):
242242
except Exception as exception:
243243
logger.exception("exception in process", exc_info=exception)
244244

245-
logger.debug(f"[PIDAL] {callsign(self)} pid {os.getpid()} has quit")
245+
logger.debug(f"[DISSHU] {callsign(self)} pid {os.getpid()} has quit")
246246

247247
# ----------------------------------------------------------------------------------------
248248
async def start_thread(self):
@@ -340,7 +340,7 @@ async def base_direct_shutdown(self):
340340
# If we were started via process, we will need to stop our own event loop.
341341
if self.owned_event_loop2 is not None:
342342
logger.debug(
343-
f"[NEWSHUT] directly shutting down {callsign(self)} owned event loop on pid {os.getpid()}"
343+
f"[DISSHU] directly shutting down {callsign(self)} owned event loop on pid {os.getpid()}"
344344
)
345345

346346
try:
@@ -351,7 +351,7 @@ async def base_direct_shutdown(self):
351351

352352
elif self.__app_runner is not None:
353353
logger.debug(
354-
f"[NEWSHUT] directly shutting down {callsign(self)} by awaiting self.__app_runner.cleanup()"
354+
f"[DISSHU] directly shutting down {callsign(self)} by awaiting self.__app_runner.cleanup()"
355355
)
356356
await self.__app_runner.cleanup()
357357

0 commit comments

Comments
 (0)