Move startup / shutdown logging to INFO (#14546)

This commit is contained in:
Adam Kelly 2023-03-06 12:01:57 -08:00 committed by GitHub
parent 6e140f24fb
commit e31429c540
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -78,7 +78,7 @@ class Service(Generic[_T_RpcServiceProtocol]):
self.max_request_body_size = max_request_body_size
self._log = logging.getLogger(service_name)
self._log.warning(f"Starting service {self._service_name} ...")
self._log.info(f"Starting service {self._service_name} ...")
self._log.info(f"chia-blockchain version: {chia_full_version_str()}")
self.service_config = self.config[service_name]
@ -157,7 +157,7 @@ class Service(Generic[_T_RpcServiceProtocol]):
for peer in self._reconnect_tasks.keys():
self.add_peer(peer)
self._log.warning(
self._log.info(
f"Started {self._service_name} service on network_id: {self._network_id} "
f"at port {self._advertised_port}"
)
@ -230,7 +230,7 @@ class Service(Generic[_T_RpcServiceProtocol]):
def stop(self) -> None:
if not self._is_stopping.is_set():
self._is_stopping.set()
self._log.warning(f"Stopping service {self._service_name} at port {self._advertised_port} ...")
self._log.info(f"Stopping service {self._service_name} at port {self._advertised_port} ...")
# start with UPnP, since this can take a while, we want it to happen
# in the background while shutting down everything else
@ -274,7 +274,7 @@ class Service(Generic[_T_RpcServiceProtocol]):
self._did_start = False
self._is_stopping.clear()
self._log.warning(f"Service {self._service_name} at port {self._advertised_port} fully stopped")
self._log.info(f"Service {self._service_name} at port {self._advertised_port} fully stopped")
def async_run(coro: Coroutine[object, object, T], connection_limit: Optional[int] = None) -> T: