Logging improvements

This commit is contained in:
Alessandro Pilotti 2013-05-01 11:31:42 +03:00
parent 9a4d0de82e
commit dcafa75141
2 changed files with 2 additions and 0 deletions

View File

@ -51,6 +51,7 @@ class InitManager(object):
except Exception, ex: except Exception, ex:
LOG.error('plugin \'%(plugin_name)s\' failed ' LOG.error('plugin \'%(plugin_name)s\' failed '
'with error \'%(ex)s\'' % locals()) 'with error \'%(ex)s\'' % locals())
LOG.exception(ex)
def configure_host(self): def configure_host(self):
mdsf = metadata_factory.MetadataServiceFactory() mdsf = metadata_factory.MetadataServiceFactory()

View File

@ -75,6 +75,7 @@ class CreateUserPlugin(base.BasePlugin):
if 'admin_pass' in meta_data and CONF.inject_user_password: if 'admin_pass' in meta_data and CONF.inject_user_password:
password = meta_data['admin_pass'] password = meta_data['admin_pass']
else: else:
LOG.debug('Generating random password')
# Generate a random password # Generate a random password
# Limit to 14 chars for compatibility with NT # Limit to 14 chars for compatibility with NT
password = self._generate_random_password(14) password = self._generate_random_password(14)