[logs] change level de certains messages

This commit is contained in:
Maxime Alves LIRMM@home 2020-12-03 18:49:37 +01:00
parent f4ba64f186
commit e61dd7eeaa
2 changed files with 3 additions and 3 deletions

View File

@ -98,7 +98,7 @@ def gen_routes(route_params: Dict, path: List, m_router: ModuleType) -> Generato
try:
fct_name = get_fct_name(verb, path[-1])
fct = getattr(m_router, fct_name)
logger.info('%s defined in %s', fct.__name__, m_router.__name__)
logger.debug('%s defined in %s', fct.__name__, m_router.__name__)
except AttributeError as exc:
logger.error('%s is not defined in %s', fct_name, m_router.__name__)
continue
@ -137,7 +137,7 @@ def gen_router_routes(m_router: ModuleType, path: List[str]) -> Generator:
subroutes = route_params.get('SUBROUTES', [])
for subroute in subroutes:
logger.info('Processing subroute **%s** - %s', subroute, m_router.__name__)
logger.debug('Processing subroute **%s** - %s', subroute, m_router.__name__)
path.append(subroute)
try:
submod = importlib.import_module(f'.{subroute}', m_router.__name__)

View File

@ -58,7 +58,7 @@ class DomainMiddleware(BaseHTTPMiddleware):
config_section = self.config.items(current_domain)
scope_['config'] = dict(config_section)
except configparser.NoSectionError:
logger.info(
logger.debug(
f'No specific configuration for domain **{current_domain}**')
scope_['config'] = {}