Use log.debug for reserved space message.
This commit is contained in:
parent
2c88b06f23
commit
a8314990f2
1 changed files with 6 additions and 1 deletions
|
@ -10,9 +10,12 @@ import time
|
||||||
from voussoirkit import betterhelp
|
from voussoirkit import betterhelp
|
||||||
from voussoirkit import bytestring
|
from voussoirkit import bytestring
|
||||||
from voussoirkit import pathclass
|
from voussoirkit import pathclass
|
||||||
|
from voussoirkit import vlogging
|
||||||
from voussoirkit import winglob
|
from voussoirkit import winglob
|
||||||
from voussoirkit import winwhich
|
from voussoirkit import winwhich
|
||||||
|
|
||||||
|
log = vlogging.getLogger(__name__)
|
||||||
|
|
||||||
WINRAR = winwhich.which('winrar')
|
WINRAR = winwhich.which('winrar')
|
||||||
PAR2 = winwhich.which('phpar2')
|
PAR2 = winwhich.which('phpar2')
|
||||||
|
|
||||||
|
@ -150,7 +153,7 @@ def assert_enough_space(pathsize, workdir, moveto, rec, rev, par):
|
||||||
f'Reserving {bytestring.bytestring(reserve)} /',
|
f'Reserving {bytestring.bytestring(reserve)} /',
|
||||||
f'{bytestring.bytestring(free_space)}.',
|
f'{bytestring.bytestring(free_space)}.',
|
||||||
])
|
])
|
||||||
print(message)
|
log.debug(message)
|
||||||
|
|
||||||
if reserve > free_space:
|
if reserve > free_space:
|
||||||
raise NotEnoughSpace('Please leave more space')
|
raise NotEnoughSpace('Please leave more space')
|
||||||
|
@ -499,6 +502,8 @@ def rarpar_argparse(args):
|
||||||
)
|
)
|
||||||
|
|
||||||
def main(argv):
|
def main(argv):
|
||||||
|
argv = vlogging.set_level_by_argv(log, argv)
|
||||||
|
|
||||||
parser = argparse.ArgumentParser(description=__doc__)
|
parser = argparse.ArgumentParser(description=__doc__)
|
||||||
|
|
||||||
parser.add_argument('path')
|
parser.add_argument('path')
|
||||||
|
|
Loading…
Reference in a new issue