Now we support configuring multi-ips,
if one ip login fails, we will try to
connect to other ips. The problem is,
if one ip login fails, the log message
did not tell users which ip fails.
Closes-Bug: #
1549157
Change-Id: I4aa933c37b1fe20438c330fd86b2a67524834e8d
calltimeout=constants.LOGIN_SOCKET_TIMEOUT)
if (result['error']['code'] != 0) or ("data" not in result):
- LOG.error(_LE("Login error, reason is: %s."), result)
+ LOG.error(_LE("Login error. URL: %(url)s\n"
+ "Reason: %(reason)s."),
+ {"url": item_url, "reason": result})
continue
LOG.debug('Login success: %(url)s', {'url': item_url})