sleep before read from stdin
This commit is contained in:
parent
f8322c0bfa
commit
0ab598f253
|
@ -6,6 +6,7 @@ import argparse
|
||||||
from borgmanager.borg import OutputHandler
|
from borgmanager.borg import OutputHandler
|
||||||
from borgmanager.summary import Summary
|
from borgmanager.summary import Summary
|
||||||
from borgmanager.logging import Log, LEVEL_DEBUG
|
from borgmanager.logging import Log, LEVEL_DEBUG
|
||||||
|
from time import sleep
|
||||||
|
|
||||||
|
|
||||||
def main(args, path: Path, log: Log):
|
def main(args, path: Path, log: Log):
|
||||||
|
@ -22,6 +23,7 @@ def main(args, path: Path, log: Log):
|
||||||
summary = Summary(db)
|
summary = Summary(db)
|
||||||
print(summary.repo_stats())
|
print(summary.repo_stats())
|
||||||
else:
|
else:
|
||||||
|
sleep(1)
|
||||||
log.debug("reading from stdin")
|
log.debug("reading from stdin")
|
||||||
borg_output = " ".join(stdin.readlines())
|
borg_output = " ".join(stdin.readlines())
|
||||||
log.debug(f"stdin output: {borg_output}")
|
log.debug(f"stdin output: {borg_output}")
|
||||||
|
|
Loading…
Reference in New Issue
Block a user