Merge "Improve the detect backup was created when parse log"
This commit is contained in:
commit
39322f5ad8
@ -14,10 +14,11 @@
|
|||||||
|
|
||||||
import os
|
import os
|
||||||
|
|
||||||
|
import sys
|
||||||
|
|
||||||
from oslo_config import cfg
|
from oslo_config import cfg
|
||||||
from oslo_log import log as logging
|
from oslo_log import log as logging
|
||||||
from oslo_utils import importutils
|
from oslo_utils import importutils
|
||||||
import sys
|
|
||||||
|
|
||||||
topdir = os.path.normpath(
|
topdir = os.path.normpath(
|
||||||
os.path.join(os.path.abspath(sys.argv[0]), os.pardir, os.pardir))
|
os.path.join(os.path.abspath(sys.argv[0]), os.pardir, os.pardir))
|
||||||
@ -112,8 +113,8 @@ def stream_backup_to_storage(runner_cls, storage):
|
|||||||
metadata=CONF.swift_extra_metadata,
|
metadata=CONF.swift_extra_metadata,
|
||||||
container=CONF.swift_container
|
container=CONF.swift_container
|
||||||
)
|
)
|
||||||
LOG.info('Backup successfully, checksum: %s, location: %s',
|
LOG.info('Backup successfully, checksum: %s, location: %s',
|
||||||
checksum, location)
|
checksum, location)
|
||||||
except Exception as err:
|
except Exception as err:
|
||||||
LOG.exception('Failed to call stream_backup_to_storage, error: %s',
|
LOG.exception('Failed to call stream_backup_to_storage, error: %s',
|
||||||
err)
|
err)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user