Change some debug logging to warning
@@ -197,9 +197,9 @@ def enable_ibmq_account(url, token, proxies):
if unique_id not in IBMQ._accounts:
IBMQ.enable_account(token, url=url, proxies=proxies)
- logger.debug("Enabled IBMQ account. Url:'{}' Token:'{}' Proxies:'{}'".format(url, token, proxies))
+ logger.warning("Enabled IBMQ account. Url:'{}' Token:'{}' Proxies:'{}'".format(url, token, proxies))
except Exception as e:
- logger.debug("Failed to enable IBMQ account. Url:'{}' Token:'{}' Proxies:'{}' :{}".format(url, token, proxies, str(e)))
+ logger.warning("Failed to enable IBMQ account. Url:'{}' Token:'{}' Proxies:'{}' :{}".format(url, token, proxies, str(e)))
def disable_ibmq_account(url, token, proxies):
@@ -215,11 +215,11 @@ def disable_ibmq_account(url, token, proxies):
unique_id = credentials.unique_id()
if unique_id in IBMQ._accounts:
del IBMQ._accounts[unique_id]
- logger.debug("Disabled IBMQ account. Url:'{}' Token:'{}' Proxies:'{}'".format(url, token, proxies))
+ logger.warning("Disabled IBMQ account. Url:'{}' Token:'{}' Proxies:'{}'".format(url, token, proxies))
else:
- logger.debug("IBMQ account is not active. Not disabled. Url:'{}' Token:'{}' Proxies:'{}'".format(url, token, proxies))
+ logger.warning("IBMQ account is not active. Not disabled. Url:'{}' Token:'{}' Proxies:'{}'".format(url, token, proxies))
except Exception as e:
- logger.debug("Failed to disable IBMQ account. Url:'{}' Token:'{}' Proxies:'{}' :{}".format(url, token, proxies, str(e)))
+ logger.warning("Failed to disable IBMQ account. Url:'{}' Token:'{}' Proxies:'{}' :{}".format(url, token, proxies, str(e)))
def _get_ibmq_provider():
@@ -228,6 +228,6 @@ def _get_ibmq_provider():
try:
providers['qiskit.IBMQ'] = get_backends_from_provider('qiskit.IBMQ')
except Exception as e:
- logger.debug("Failed to access IBMQ: {}".format(str(e)))
+ logger.warning("Failed to access IBMQ: {}".format(str(e)))
return providers
