mirror of
https://github.com/borgbackup/borg.git
synced 2025-03-04 02:28:34 +00:00
remove rarely used print_status method
This commit is contained in:
parent
25140e8c82
commit
6abf7621c1
1 changed files with 2 additions and 5 deletions
|
@ -64,9 +64,6 @@ class Archiver:
|
||||||
msg = args and msg % args or msg
|
msg = args and msg % args or msg
|
||||||
logger.info(msg)
|
logger.info(msg)
|
||||||
|
|
||||||
def print_status(self, status, path):
|
|
||||||
self.print_info("%1s %s", status, remove_surrogates(path))
|
|
||||||
|
|
||||||
def do_serve(self, args):
|
def do_serve(self, args):
|
||||||
"""Start in server mode. This command is usually not used manually.
|
"""Start in server mode. This command is usually not used manually.
|
||||||
"""
|
"""
|
||||||
|
@ -154,7 +151,7 @@ class Archiver:
|
||||||
self.print_warning('%s: %s', path, e)
|
self.print_warning('%s: %s', path, e)
|
||||||
else:
|
else:
|
||||||
status = '-'
|
status = '-'
|
||||||
self.print_status(status, path)
|
self.print_info("%1s %s", status, remove_surrogates(path))
|
||||||
continue
|
continue
|
||||||
path = os.path.normpath(path)
|
path = os.path.normpath(path)
|
||||||
if args.one_file_system:
|
if args.one_file_system:
|
||||||
|
@ -255,7 +252,7 @@ class Archiver:
|
||||||
status = '-' # dry run, item was not backed up
|
status = '-' # dry run, item was not backed up
|
||||||
# output ALL the stuff - it can be easily filtered using grep.
|
# output ALL the stuff - it can be easily filtered using grep.
|
||||||
# even stuff considered unchanged might be interesting.
|
# even stuff considered unchanged might be interesting.
|
||||||
self.print_status(status, path)
|
self.print_info("%1s %s", status, remove_surrogates(path))
|
||||||
|
|
||||||
def do_extract(self, args):
|
def do_extract(self, args):
|
||||||
"""Extract archive contents"""
|
"""Extract archive contents"""
|
||||||
|
|
Loading…
Add table
Reference in a new issue