Warn on socket.gaierror in main.bootstrap_from_dns()

This commit is contained in:
Lee Miller 2024-07-14 04:57:30 +03:00
parent 1776cf958d
commit c411d2f28d
Signed by: lee.miller
GPG Key ID: 4F97A5EA88F4AB63

View File

@ -116,7 +116,8 @@ def bootstrap_from_dns():
else:
shared.core_nodes.add((addr, port))
except socket.gaierror:
pass
logging.warning(
'Failed to resolve the seed for port %s', port, exc_info=True)
except Exception:
logging.info('Error during DNS bootstrap', exc_info=True)