Fix missing print format in log messages

This is to fix:
1. print format is missing in "%(volume)"
2. ws is missing between words in log messages.

Change-Id: Iff2712a8157895d5a67bccee596a80a8b255fc40
This commit is contained in:
zhufl 2019-09-23 11:12:16 +08:00
parent f5feb87ab8
commit c843b9b209
2 changed files with 2 additions and 2 deletions

View File

@ -976,7 +976,7 @@ class CephBackupDriver(driver.BackupDriver):
self.delete_backup(backup)
else:
if backup.parent_id:
LOG.debug("Volume file is NOT RBD: can't perform"
LOG.debug("Volume file is NOT RBD: can't perform "
"incremental backup.")
raise exception.BackupRBDOperationFailed
LOG.debug("Volume file is NOT RBD: will do full backup.")

View File

@ -967,7 +967,7 @@ class MacroSANBaseDriver(driver.VolumeDriver):
owner = self.client.get_lun_sp(src_name)
pool = host['capabilities'].get('pool_name', self.pool)
LOG.info('Migrating volume: %(volume), '
LOG.info('Migrating volume: %(volume)s, '
'host: %(host)s, '
'backend: %(volume_backend_name)s',
{'volume': src_name,