]> git.mxchange.org Git - fba.git/commitdiff
Continued:
authorRoland Häder <roland@mxchange.org>
Wed, 22 Jan 2025 12:21:09 +0000 (13:21 +0100)
committerRoland Häder <roland@mxchange.org>
Wed, 22 Jan 2025 12:21:09 +0000 (13:21 +0100)
- all "Setting detection_mode=FOO" lines are now on info level (was mostly debug)

fba/http/federation.py
fba/http/nodeinfo.py

index 665b1600a8137a025554661b1cfc778978ee9ecd..8ab703fe477f77a49189774f7e25cc8707403fba 100644 (file)
@@ -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)
index 882fdbb2ff14a7bc7c5d0ab4e89ae2fae26f1a6b..646c2ae1832f9ef20948a2dc1ffe3a3e8742d6d8 100644 (file)
@@ -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)