2 parents 5ba5e1e + cd1a412 commit 7e7f755Copy full SHA for 7e7f755
1 file changed
openstackclient/common/client_config.py
@@ -17,6 +17,8 @@
17
18
from os_client_config import config
19
from os_client_config import exceptions as occ_exceptions
20
+from oslo_utils import strutils
21
+import six
22
23
24
LOG = logging.getLogger(__name__)
@@ -180,7 +182,9 @@ def auth_config_hook(self, config):
180
182
config = self._auth_v2_ignore_v3(config)
181
183
config = self._auth_default_domain(config)
184
- LOG.debug("auth_config_hook(): %s" % config)
185
+ if LOG.isEnabledFor(logging.DEBUG):
186
+ LOG.debug("auth_config_hook(): %s",
187
+ strutils.mask_password(six.text_type(config)))
188
return config
189
190
def load_auth_plugin(self, config):
0 commit comments