Improve the detect backup was created when parse log

Task: #43209
Story: #2009176
Change-Id: I6aff0d185991db77b17a4f23084de6734b2b3a6c
This commit is contained in:
Bo Tran 2021-09-05 13:53:24 +07:00
parent f3459e2662
commit 91e002b1f2

View File

@ -14,10 +14,11 @@
import os
import sys
from oslo_config import cfg
from oslo_log import log as logging
from oslo_utils import importutils
import sys
topdir = os.path.normpath(
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,
container=CONF.swift_container
)
LOG.info('Backup successfully, checksum: %s, location: %s',
checksum, location)
LOG.info('Backup successfully, checksum: %s, location: %s',
checksum, location)
except Exception as err:
LOG.exception('Failed to call stream_backup_to_storage, error: %s',
err)