]> git.mxchange.org Git - fba.git/blobdiff - fba/helpers/cookies.py
Fixed:
[fba.git] / fba / helpers / cookies.py
index a42ce2febe6e5f730973c4c6311ae5eac4e58c9b..b40b68bd74bb60c1ec76715dd1e3156405dd07bc 100644 (file)
@@ -43,10 +43,10 @@ def store (domain: str, cookies: dict):
 
     _cookies[domain] = cookies
 
-    logger.debug(f"EXIT!")
+    logger.debug("EXIT!")
 
 def get_all(domain: str) -> dict:
-    logger.debug(f"domain='{domain}' - CALLED!")
+    logger.debug("domain(%d)='%s' - CALLED!", len(domain), domain)
     if not isinstance(domain, str):
         raise ValueError(f"Parameter domain[]='{type(domain)}' is not 'str'")
     elif domain == "":
@@ -66,7 +66,7 @@ def get_all(domain: str) -> dict:
     return _cookies[domain]
 
 def has (domain: str) -> bool:
-    logger.debug(f"domain='{domain}' - CALLED!")
+    logger.debug("domain(%d)='%s' - CALLED!", len(domain), domain)
     if not isinstance(domain, str):
         raise ValueError(f"Parameter domain[]='{type(domain)}' is not 'str'")
     elif domain == "":
@@ -80,7 +80,7 @@ def has (domain: str) -> bool:
     return has_cookies
 
 def clear (domain: str):
-    logger.debug(f"domain='{domain}' - CALLED!")
+    logger.debug("domain(%d)='%s' - CALLED!", len(domain), domain)
     if not isinstance(domain, str):
         raise ValueError(f"Parameter domain[]='{type(domain)}' is not 'str'")
     elif domain == "":
@@ -98,4 +98,4 @@ def clear (domain: str):
         logger.debug(f"Removing cookies for domain='{domain}' ...")
         del _cookies[domain]
 
-    logger.debug(f"EXIT!")
+    logger.debug("EXIT!")