From: Roland Häder Date: Wed, 22 Jan 2025 12:21:09 +0000 (+0100) Subject: Continued: X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=6db93235c507f8dfc753f2037230beac16615c6f;p=fba.git Continued: - all "Setting detection_mode=FOO" lines are now on info level (was mostly debug) --- diff --git a/fba/http/federation.py b/fba/http/federation.py index 665b160..8ab703f 100644 --- a/fba/http/federation.py +++ b/fba/http/federation.py @@ -331,7 +331,7 @@ def fetch_generator_from_path(domain: str, path: str = "/") -> str: logger.debug("software[%s]='%s' after tidyup.domain() ...", type(software), software) if software is not None and software != "": - logger.debug("domain='%s' has og:platform='%s' - Setting detection_mode=PLATFORM ...", domain, software) + logger.info("domain='%s' has og:platform='%s' - Setting detection_mode=PLATFORM ...", domain, software) instances.set_detection_mode(domain, "PLATFORM") elif isinstance(generator, bs4.element.Tag) and isinstance(generator.get("content"), str) and generator.get("content") != "": logger.debug("Found generator meta tag: domain='%s'", domain) @@ -347,7 +347,7 @@ def fetch_generator_from_path(domain: str, path: str = "/") -> str: logger.debug("software[%s]='%s'", type(software), software) if software is not None and software != "": - logger.debug("domain='%s' has application-name='%s' - Setting detection_mode=app_name ...", domain, software) + logger.info("domain='%s' has application-name='%s' - Setting detection_mode=APP_NAME ...", domain, software) instances.set_detection_mode(domain, "APP_NAME") elif isinstance(site_name, bs4.element.Tag) and isinstance(site_name.get("content"), str) and site_name.get("content") != "": logger.debug("Found property=og:site_name, domain='%s'", domain) @@ -355,7 +355,7 @@ def fetch_generator_from_path(domain: str, path: str = "/") -> str: logger.debug("software[%s]='%s'", type(software), software) if software is not None and software != "": - logger.debug("domain='%s' has og:site_name='%s' - Setting detection_mode=SITE_NAME ...", domain, software) + logger.info("domain='%s' has og:site_name='%s' - Setting detection_mode=SITE_NAME ...", domain, software) instances.set_detection_mode(domain, "SITE_NAME") elif not validators.url(response_url): logger.warning("response_url='%s' is not valid - Raising exception ...", response_url) diff --git a/fba/http/nodeinfo.py b/fba/http/nodeinfo.py index 882fdbb..646c2ae 100644 --- a/fba/http/nodeinfo.py +++ b/fba/http/nodeinfo.py @@ -128,7 +128,7 @@ def fetch(domain: str, path: str = None, update_mode: bool = True) -> dict: logger.debug("update_mode='%s'", update_mode) if update_mode: - logger.debug("Success: request='%s' - Setting detection_mode=STATIC_CHECK for domain='%s' ...", request, domain) + logger.info("Success: request='%s' - Setting detection_mode=STATIC_CHECK for domain='%s' ...", request, domain) instances.set_detection_mode(domain, "STATIC_CHECK") logger.debug("domain='%s',request='%s'", domain, request)