bug
1081498
There are a few log messages without _(), but a lot messages with _().
Wrap these log messages with _() in order to make the code consistent.
Change-Id: Ie8961453569e9a75bd0fd0733344db8059d05222
table.create()
except Exception:
LOG.info(repr(table))
- LOG.exception('Exception while creating table.')
+ LOG.exception(_('Exception while creating table.'))
raise
if migrate_engine.name == "mysql":
def downgrade(migrate_engine):
- LOG.exception('Downgrade from initial Cinder install is unsupported.')
+ LOG.exception(_('Downgrade from initial Cinder install is unsupported.'))
try:
volume_glance_metadata.create()
except Exception:
- LOG.exception("Exception while creating table "
- "'volume_glance_metedata'")
+ LOG.exception(_("Exception while creating table "
+ "'volume_glance_metedata'"))
meta.drop_all(tables=[volume_glance_metadata])
raise
dbapi_conn.cursor().execute('select 1')
except dbapi_conn.OperationalError, ex:
if ex.args[0] in (2006, 2013, 2014, 2045, 2055):
- LOG.warn('Got mysql server has gone away: %s', ex)
+ LOG.warn(_('Got mysql server has gone away: %s'), ex)
raise DisconnectionError("Database server went away")
else:
raise
self._ensure_share_mounted(share)
self._mounted_shares.append(share)
except Exception, exc:
- LOG.warning('Exception during mounting %s' % (exc,))
+ LOG.warning(_('Exception during mounting %s') % (exc,))
LOG.debug('Available shares %s' % str(self._mounted_shares))