From: Vasek Sraier Date: Sun, 17 Apr 2022 15:11:39 +0000 (+0200) Subject: manager: improved logging of subprocess controller selection X-Git-Tag: v6.0.0a1~29^2~21 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5253c787d55d9ec3edea8964c008b10123ea4c76;p=thirdparty%2Fknot-resolver.git manager: improved logging of subprocess controller selection --- diff --git a/manager/knot_resolver_manager/kresd_controller/__init__.py b/manager/knot_resolver_manager/kresd_controller/__init__.py index 0f677d6bf..6c5053e2c 100644 --- a/manager/knot_resolver_manager/kresd_controller/__init__.py +++ b/manager/knot_resolver_manager/kresd_controller/__init__.py @@ -36,7 +36,7 @@ def try_supervisord(): async def get_best_controller_implementation(config: KresConfig) -> SubprocessController: - logger.debug("Starting service manager auto-selection...") + logger.info("Starting service manager auto-selection...") if len(_registered_controllers) == 0: logger.error("No controllers are available! Did you install all dependencies?") @@ -44,6 +44,10 @@ async def get_best_controller_implementation(config: KresConfig) -> SubprocessCo # check all controllers concurrently res = await asyncio.gather(*(cont.is_controller_available(config) for cont in _registered_controllers)) + logger.info( + "Available subprocess controllers are %s", + str(tuple((str(c) for r, c in zip(res, _registered_controllers) if r))), + ) # take the first one on the list which is available for avail, controller in zip(res, _registered_controllers):