[connection.py] update logger

Signed-off-by: XiaoliChan <2209553467@qq.com>
main
XiaoliChan 2023-10-31 21:45:12 +08:00
parent 4128515a96
commit ddb7cf2065
1 changed files with 1 additions and 1 deletions

View File

@ -100,7 +100,7 @@ class connection:
self.host, self.is_ipv6, self.is_link_local_ipv6 = gethost_addrinfo(self.hostname)
if self.args.kerberos:
self.host = self.hostname
self.logger.info(f"Socket info: host={self.host}, hostname={self.hostname}, kerberos={ 'True' if self.args.kerberos else 'False' }, ipv6={self.is_ipv6}, link-local ipv6={self.is_link_local_ipv6}")
self.logger.info(f"Socket info: host={self.host}, hostname={self.hostname}, kerberos={self.kerberos}, ipv6={self.is_ipv6}, link-local ipv6={self.is_link_local_ipv6}")
except Exception as e:
self.logger.info(f"Error resolving hostname {self.hostname}: {e}")
return