mirror of
https://github.com/borgbackup/borg.git
synced 2024-12-25 01:06:50 +00:00
remove some superfluous / duplicate log messages
This commit is contained in:
parent
0f0a21cf54
commit
4c6be00d65
1 changed files with 0 additions and 2 deletions
|
@ -43,7 +43,6 @@ def __init__(self, repository, key, manifest, path=None, sync=True, do_files=Fal
|
|||
self.manifest = manifest
|
||||
self.path = path or os.path.join(get_cache_dir(), hexlify(repository.id).decode('ascii'))
|
||||
self.do_files = do_files
|
||||
logger.info('initializing cache')
|
||||
# Warn user before sending data to a never seen before unencrypted repository
|
||||
if not os.path.exists(self.path):
|
||||
if warn_if_unencrypted and isinstance(key, PlaintextKey):
|
||||
|
@ -71,7 +70,6 @@ def __init__(self, repository, key, manifest, path=None, sync=True, do_files=Fal
|
|||
# Make sure an encrypted repository has not been swapped for an unencrypted repository
|
||||
if self.key_type is not None and self.key_type != str(key.TYPE):
|
||||
raise self.EncryptionMethodMismatch()
|
||||
logger.info('synchronizing cache')
|
||||
self.sync()
|
||||
self.commit()
|
||||
|
||||
|
|
Loading…
Reference in a new issue