diff --git a/src/dls_servbase_api/aiohttp_client.py b/src/dls_servbase_api/aiohttp_client.py index 5be68bc..21c8dca 100644 --- a/src/dls_servbase_api/aiohttp_client.py +++ b/src/dls_servbase_api/aiohttp_client.py @@ -294,7 +294,7 @@ async def client_shutdown(self): await self._client_session.get(f"{self.__client_netloc}/shutdown") logger.debug( - f"[PIDAL] client has requested {callsign(self)} server shutdown" + f"[DISSHU] client has requested {callsign(self)} server shutdown" ) max_seconds = 5.0 @@ -316,7 +316,7 @@ async def client_shutdown(self): ) logger.debug( - f"[PIDAL] waiting for {callsign(self)} server shutdown, napping {nap_seconds}" + f"[DISSHU] waiting for {callsign(self)} server shutdown, napping {nap_seconds}" ) # Small sleep after sending shutdown command lets the server really shut down. diff --git a/src/dls_servbase_lib/base_aiohttp.py b/src/dls_servbase_lib/base_aiohttp.py index 0b29222..582ce98 100644 --- a/src/dls_servbase_lib/base_aiohttp.py +++ b/src/dls_servbase_lib/base_aiohttp.py @@ -123,7 +123,7 @@ async def start_process(self): target=self.prepare_to_activate_process, ) self.__process2.start() - logger.debug(f"[PIDAL] {callsign(self)} pid {self.__process2.pid} is started") + logger.debug(f"[DISSHU] {callsign(self)} pid {self.__process2.pid} is started") # TODO: Make maximum wait time for start_process event to be configurable. timeout = 30.0 naptime = 0.25 @@ -158,7 +158,7 @@ async def is_process_alive(self): # state = "alive" if is_alive else "dead" - # logger.debug(f"[PIDAL] {callsign(self)} pid {self.__process2.pid} is {state}") + # logger.debug(f"[DISSHU] {callsign(self)} pid {self.__process2.pid} is {state}") return is_alive @@ -242,7 +242,7 @@ def activate_process_base(self): except Exception as exception: logger.exception("exception in process", exc_info=exception) - logger.debug(f"[PIDAL] {callsign(self)} pid {os.getpid()} has quit") + logger.debug(f"[DISSHU] {callsign(self)} pid {os.getpid()} has quit") # ---------------------------------------------------------------------------------------- async def start_thread(self): @@ -340,7 +340,7 @@ async def base_direct_shutdown(self): # If we were started via process, we will need to stop our own event loop. if self.owned_event_loop2 is not None: logger.debug( - f"[NEWSHUT] directly shutting down {callsign(self)} owned event loop on pid {os.getpid()}" + f"[DISSHU] directly shutting down {callsign(self)} owned event loop on pid {os.getpid()}" ) try: @@ -351,7 +351,7 @@ async def base_direct_shutdown(self): elif self.__app_runner is not None: logger.debug( - f"[NEWSHUT] directly shutting down {callsign(self)} by awaiting self.__app_runner.cleanup()" + f"[DISSHU] directly shutting down {callsign(self)} by awaiting self.__app_runner.cleanup()" ) await self.__app_runner.cleanup()