From 979007f287910e1e261c331cf4e543aadabd21f5 Mon Sep 17 00:00:00 2001 From: "Maxime Alves LIRMM@home" Date: Fri, 21 Jan 2022 14:38:28 +0100 Subject: [PATCH] [fix][log] active domains list logging --- halfapi/halfapi.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/halfapi/halfapi.py b/halfapi/halfapi.py index df39197..7305570 100644 --- a/halfapi/halfapi.py +++ b/halfapi/halfapi.py @@ -67,9 +67,9 @@ class HalfAPI(Starlette): logger.info('Config: %s', self.config) logger.info('Active domains: %s', - filter( + list(filter( lambda n: n.get('enabled', False), - self.config.get('domain', {}))) + self.config.get('domain', {}).values()))) if d_routes: # Mount the routes from the d_routes argument - domain-less mode