headers = tuple()
try:
- logger.debug(f"Checking CSRF for domain='{domain}'")
+ logger.debug("Checking CSRF for domain='%s'", domain)
headers = csrf.determine(domain, dict())
except network.exceptions as exception:
logger.warning(f"Exception '{type(exception)}' during checking CSRF (fetch_peers,{__name__}) - EXIT!")
logger.debug("Added instance(s) to peers")
else:
message = "JSON response does not contain 'federated_instances' or 'error_message'"
- logger.warning(f"{message},domain='{domain}'")
+ logger.warning("message='%s',domain='%s'", message, domain)
instances.set_last_error(domain, message)
elif isinstance(data["json"], list):
- # DEBUG print("DEBUG: Querying API was successful:", domain, len(data['json']))
+ logger.debug("Querying API was successful: domain='%s',data[json]()=%d", domain, len(data['json']))
peers = data["json"]
else:
- logger.warning(f"Cannot parse data[json][]='{type(data['json'])}'")
+ logger.warning("Cannot parse data[json][]='%s'", type(data['json']))
logger.debug(f"Adding '{len(peers)}' for domain='{domain}'")
instances.set_total_peers(domain, peers)
data = dict()
try:
- logger.debug(f"Checking CSRF for domain='{domain}'")
+ logger.debug("Checking CSRF for domain='%s'", domain)
headers = csrf.determine(domain, dict())
except network.exceptions as exception:
logger.warning(f"Exception '{type(exception)}' during checking CSRF (nodeinfo,{__name__}) - EXIT!")
headers = tuple()
try:
- logger.debug(f"Checking CSRF for domain='{domain}'")
+ logger.debug("Checking CSRF for domain='%s'", domain)
headers = csrf.determine(domain, dict())
except network.exceptions as exception:
logger.warning(f"Exception '{type(exception)}' during checking CSRF (fetch_wellknown_nodeinfo,{__name__}) - EXIT!")
headers = tuple()
try:
- logger.debug(f"Checking CSRF for domain='{domain}'")
+ logger.debug("Checking CSRF for domain='%s'", domain)
headers = csrf.determine(domain, dict())
except network.exceptions as exception:
logger.warning(f"Exception '{type(exception)}' during checking CSRF (fetch_peers,{__name__}) - EXIT!")
headers = tuple()
try:
- logger.debug(f"Checking CSRF for domain='{domain}'")
+ logger.debug("Checking CSRF for domain='%s'", domain)
headers = csrf.determine(domain, dict())
except network.exceptions as exception:
logger.warning(f"Exception '{type(exception)}' during checking CSRF (fetch_blocks,{__name__}) - EXIT!")