Print stdin at start

This commit is contained in:
George Lacey 2021-05-07 11:12:09 +01:00
parent b81d892a3b
commit f418adf727

View File

@ -23,7 +23,6 @@ def main(args, path: Path, log: Log):
summary = Summary(db) summary = Summary(db)
print(summary.repo_stats()) print(summary.repo_stats())
else: else:
sleep(5)
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}")
@ -50,6 +49,7 @@ def get_args():
if __name__ == "__main__": if __name__ == "__main__":
print(stdin.readlines())
m_args = get_args() m_args = get_args()
m_path = Path(realpath(__file__)).parent.parent m_path = Path(realpath(__file__)).parent.parent
m_log = Log(LEVEL_DEBUG) m_log = Log(LEVEL_DEBUG)